Title: Sankey diagram not working · Issue #2023 · plotly/plotly.R · GitHub
Open Graph Title: Sankey diagram not working · Issue #2023 · plotly/plotly.R
X Title: Sankey diagram not working · Issue #2023 · plotly/plotly.R
Description: library(plotly) require(ggplot2) library(ggalluvial) p <- ggplot(as.data.frame(UCBAdmissions), aes(y = Freq, axis1 = Gender, axis2 = Dept)) + geom_alluvium(aes(fill = Admit), width = 1/12) + geom_stratum(width = 1/12, fill = "black", col...
Open Graph Description: library(plotly) require(ggplot2) library(ggalluvial) p <- ggplot(as.data.frame(UCBAdmissions), aes(y = Freq, axis1 = Gender, axis2 = Dept)) + geom_alluvium(aes(fill = Admit), width = 1/12) + geom_s...
X Description: library(plotly) require(ggplot2) library(ggalluvial) p <- ggplot(as.data.frame(UCBAdmissions), aes(y = Freq, axis1 = Gender, axis2 = Dept)) + geom_alluvium(aes(fill = Admit), width = 1/12) + geo...
Opengraph URL: https://github.com/plotly/plotly.R/issues/2023
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sankey diagram not working","articleBody":"```\r\n\r\nlibrary(plotly)\r\nrequire(ggplot2)\r\nlibrary(ggalluvial)\r\n\r\np \u003c- ggplot(as.data.frame(UCBAdmissions),\r\n aes(y = Freq, axis1 = Gender, axis2 = Dept)) +\r\n geom_alluvium(aes(fill = Admit), width = 1/12) +\r\n geom_stratum(width = 1/12, fill = \"black\", color = \"grey\") +\r\n geom_label(stat = \"stratum\", aes(label = after_stat(stratum))) +\r\n scale_x_discrete(limits = c(\"Gender\", \"Dept\"), expand = c(.05, .05)) +\r\n scale_fill_brewer(type = \"qual\", palette = \"Set1\") +\r\n ggtitle(\"UC Berkeley admissions and rejections, by sex and department\")\r\n\r\nggplotly(p)\r\n```\r\nyield following error:\r\n```\r\n\r\nWarning in geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :\r\n geom_GeomAlluvium() has yet to be implemented in plotly.\r\n If you'd like to see this geom implemented,\r\n Please open an issue with your example code at\r\n https://github.com/ropensci/plotly/issues\r\nWarning in geom2trace.default(dots[[1L]][[2L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :\r\n geom_GeomAlluvium() has yet to be implemented in plotly.\r\n If you'd like to see this geom implemented,\r\n Please open an issue with your example code at\r\n https://github.com/ropensci/plotly/issues\r\nWarning in geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :\r\n geom_GeomStratum() has yet to be implemented in plotly.\r\n If you'd like to see this geom implemented,\r\n Please open an issue with your example code at\r\n https://github.com/ropensci/plotly/issues\r\nWarning in geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :\r\n geom_GeomLabel() has yet to be implemented in plotly.\r\n If you'd like to see this geom implemented,\r\n Please open an issue with your example code at\r\n https://github.com/ropensci/plotly/issues\r\n```\r\nMore examples here: https://cran.r-project.org/web/packages/ggalluvial/vignettes/ggalluvial.html","author":{"url":"https://github.com/danton267","@type":"Person","name":"danton267"},"datePublished":"2021-09-26T03:55:51Z","url":"https://github.com/plotly/plotly.R/issues/2023"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:31fbf333-57cd-42aa-353a-54e1a5e6a019 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF08:1201C:DC4580:12653F7:6B010060 |
| html-safe-nonce | 752eae5702fb55941b3290dcf1495bb95e0cb5f8ca5ead6620e290310bdfecb2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjA4OjEyMDFDOkRDNDU4MDoxMjY1M0Y3OjZCMDEwMDYwIiwidmlzaXRvcl9pZCI6IjQ5NDExNDc5NTM1NjY5MDg1MTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6aaa866461e2a712b6cd9067429d510725e23f304fd9e38c966a53009684d604 |
| hovercard-subject-tag | issue:1007267406 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/plotly/plotly.R/2023/issue_layout |
| twitter:image | https://opengraph.githubassets.com/885a6fd405899f71be1d4db365e96027f08684b7d3cbc3b79e289b493f4feeb5/plotly/plotly.R/issues/2023 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/885a6fd405899f71be1d4db365e96027f08684b7d3cbc3b79e289b493f4feeb5/plotly/plotly.R/issues/2023 |
| og:image:alt | library(plotly) require(ggplot2) library(ggalluvial) p <- ggplot(as.data.frame(UCBAdmissions), aes(y = Freq, axis1 = Gender, axis2 = Dept)) + geom_alluvium(aes(fill = Admit), width = 1/12) + geom_s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | danton267 |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/plotly/plotly.R git https://github.com/plotly/plotly.R.git |
| octolytics-dimension-user_id | 5997976 |
| octolytics-dimension-user_login | plotly |
| octolytics-dimension-repository_id | 14579179 |
| octolytics-dimension-repository_nwo | plotly/plotly.R |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14579179 |
| octolytics-dimension-repository_network_root_nwo | plotly/plotly.R |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width