Title: ggplotly: geom_path interpretation of size · Issue #340 · plotly/plotly.R · GitHub
Open Graph Title: ggplotly: geom_path interpretation of size · Issue #340 · plotly/plotly.R
X Title: ggplotly: geom_path interpretation of size · Issue #340 · plotly/plotly.R
Description: For a visualization I'm making thick curves as follows: require(ggplot2) require(plotly) require(Hmisc) len=100 edge=data.frame(bezier(x=c(0, 1, 2), y=c(0, 1, 0),evaluation = len)) edge$Sequence <- sin( seq(0,pi,length.out=len) ) gg = gg...
Open Graph Description: For a visualization I'm making thick curves as follows: require(ggplot2) require(plotly) require(Hmisc) len=100 edge=data.frame(bezier(x=c(0, 1, 2), y=c(0, 1, 0),evaluation = len)) edge$Sequence <-...
X Description: For a visualization I'm making thick curves as follows: require(ggplot2) require(plotly) require(Hmisc) len=100 edge=data.frame(bezier(x=c(0, 1, 2), y=c(0, 1, 0),evaluation = len)) edge$Sequenc...
Opengraph URL: https://github.com/plotly/plotly.R/issues/340
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ggplotly: geom_path interpretation of size","articleBody":"For a visualization I'm making thick curves as follows: \n\n``` R\nrequire(ggplot2)\nrequire(plotly)\nrequire(Hmisc)\nlen=100\nedge=data.frame(bezier(x=c(0, 1, 2), y=c(0, 1, 0),evaluation = len))\nedge$Sequence \u003c- sin( seq(0,pi,length.out=len) ) \ngg = ggplot(edge,aes(x = x, y = y, size = Sequence)) + geom_path() + scale_size( range = c(.3, 20), guide = F) + theme_bw(base_size = 16) + ylim(0,.6) + scale_alpha(guide=F)\npl \u003c- ggplotly(gg)\n```\n\nwhich in ggplot2 gives:\n\n\nbut which with ggplotly\n\n``` R\npl \u003c- ggplotly(gg)\n```\n\ngives\n\n\nI think the problem is that ggplotly is assuming every different \"size\" should be considered as a separate path, whereas ggplot2 is not. \n","author":{"url":"https://github.com/davidaknowles","@type":"Person","name":"davidaknowles"},"datePublished":"2015-12-11T22:04:53Z","url":"https://github.com/plotly/plotly.R/issues/340"}
| 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:8d7f28d3-9f2a-6286-d57f-26504704e9e2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8FDA:3E418A:39A758:4BB4EE:6B019306 |
| html-safe-nonce | 263aa9a61268ae889726c3d1561eda4d73f16fe2fad189b27b64731e2f847702 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RkRBOjNFNDE4QTozOUE3NTg6NEJCNEVFOjZCMDE5MzA2IiwidmlzaXRvcl9pZCI6IjQzNjYyMjc2Mjk5Mzg5Mzg2MzAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 35b54e5f93029de1eab874d868a3a6de5512c32397bc48528c150526f16d2df9 |
| hovercard-subject-tag | issue:121801141 |
| 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/340/issue_layout |
| twitter:image | https://opengraph.githubassets.com/53467b4e1ca18f34aaa53749a14bbe771954b8379a3809910d2e1ae7ae8a78bc/plotly/plotly.R/issues/340 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/53467b4e1ca18f34aaa53749a14bbe771954b8379a3809910d2e1ae7ae8a78bc/plotly/plotly.R/issues/340 |
| og:image:alt | For a visualization I'm making thick curves as follows: require(ggplot2) require(plotly) require(Hmisc) len=100 edge=data.frame(bezier(x=c(0, 1, 2), y=c(0, 1, 0),evaluation = len)) edge$Sequence <-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | davidaknowles |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width