Title: ggplotly: automatic labels in graph with one line created with `ggplot2` · Issue #607 · plotly/plotly.R · GitHub
Open Graph Title: ggplotly: automatic labels in graph with one line created with `ggplot2` · Issue #607 · plotly/plotly.R
X Title: ggplotly: automatic labels in graph with one line created with `ggplot2` · Issue #607 · plotly/plotly.R
Description: Is there an automatic way to keep the legend in graph with one line which was created with ggplot2 and then converted to plotly graph through ggplotly, subplot or similar function? And why are this kind of labels labels removed? Illustra...
Open Graph Description: Is there an automatic way to keep the legend in graph with one line which was created with ggplot2 and then converted to plotly graph through ggplotly, subplot or similar function? And why are this...
X Description: Is there an automatic way to keep the legend in graph with one line which was created with ggplot2 and then converted to plotly graph through ggplotly, subplot or similar function? And why are this...
Opengraph URL: https://github.com/plotly/plotly.R/issues/607
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ggplotly: automatic labels in graph with one line created with `ggplot2`","articleBody":"Is there an _automatic_ way to keep the legend in graph with one line which was created with `ggplot2` and then converted to `plotly` graph through `ggplotly`, `subplot` or similar function?\n\nAnd why are this kind of labels labels removed?\n\nIllustration of my concerns:\n\n```\nseveral_lines \u003c- {ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species)) + geom_line()} %>%\n ggplotly() %>%\n layout(showlegend = TRUE) %>% plotly_build()\n\niris$All \u003c- \"All species\"\n\none_line \u003c- {ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = All)) + geom_line()} %>%\n ggplotly() %>%\n layout(showlegend = TRUE) %>% plotly_build()\n```\n\nLegend is displayed:\n\n```\nseveral_lines\n```\n\nLegend is missing:\n\n```\none_line\n```\n\nEven the text of the legend entry is missing:\n\n```\none_line$data[[1]]$name\n## [1] \"\"\n\none_line$data[[1]]$showlegend\n## [1] FALSE\n```\n","author":{"url":"https://github.com/GegznaV","@type":"Person","name":"GegznaV"},"datePublished":"2016-05-26T10:06:07Z","url":"https://github.com/plotly/plotly.R/issues/607"}
| 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:c913cf6f-68c0-9408-d0e5-f9999a53c62e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DF2:7A60E:163E713:1C90B29:6B01296F |
| html-safe-nonce | c90c238f29b6c84cdd8980ffd15119a4db923211acbfd95af320bc80b050e7ca |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REYyOjdBNjBFOjE2M0U3MTM6MUM5MEIyOTo2QjAxMjk2RiIsInZpc2l0b3JfaWQiOiI2ODQzMDIyODEwMTE4NDMzMTM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d3cb2396eb1c9bd90334e9cadde78676aea60d9e8cb172c833ee839d7756019b |
| hovercard-subject-tag | issue:156948868 |
| 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/607/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7425330d3de0c4298fb3640ef0e651ac8b73d08ee30f7ae29a4ce3ed9974cece/plotly/plotly.R/issues/607 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7425330d3de0c4298fb3640ef0e651ac8b73d08ee30f7ae29a4ce3ed9974cece/plotly/plotly.R/issues/607 |
| og:image:alt | Is there an automatic way to keep the legend in graph with one line which was created with ggplot2 and then converted to plotly graph through ggplotly, subplot or similar function? And why are this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GegznaV |
| 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