Title: Use of multiple aesthetics in scale_*_manual causes legend to be dropped in ggplotly conversion · Issue #2467 · plotly/plotly.R · GitHub
Open Graph Title: Use of multiple aesthetics in scale_*_manual causes legend to be dropped in ggplotly conversion · Issue #2467 · plotly/plotly.R
X Title: Use of multiple aesthetics in scale_*_manual causes legend to be dropped in ggplotly conversion · Issue #2467 · plotly/plotly.R
Description: Feels related to #2466. If the {ggplot2} facility to bind a custom scale to muiltiple aesthetics is used, the legend is dropped when the plot is converted plotly. Reprex: library(plotly) library(ggplot2) library(palmerpenguins) p <- peng...
Open Graph Description: Feels related to #2466. If the {ggplot2} facility to bind a custom scale to muiltiple aesthetics is used, the legend is dropped when the plot is converted plotly. Reprex: library(plotly) library(gg...
X Description: Feels related to #2466. If the {ggplot2} facility to bind a custom scale to muiltiple aesthetics is used, the legend is dropped when the plot is converted plotly. Reprex: library(plotly) library(gg...
Opengraph URL: https://github.com/plotly/plotly.R/issues/2467
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Use of multiple aesthetics in scale_*_manual causes legend to be dropped in ggplotly conversion","articleBody":"Feels related to #2466.\n\nIf the `{ggplot2}` facility to bind a custom scale to muiltiple aesthetics is used, the legend is dropped when the plot is converted plotly.\n\nReprex:\n```{r}\nlibrary(plotly)\nlibrary(ggplot2)\nlibrary(palmerpenguins)\n\np \u003c-\n penguins |>\n ggplot(aes(\n x = body_mass_g,\n y = bill_length_mm,\n colour = species,\n fill = species\n )) +\n geom_point() +\n scale_colour_manual(\n values = c(\n \"Adelie\" = \"red\",\n \"Chinstrap\" = \"green\",\n \"Gentoo\" = \"blue\"\n ),\n aesthetics = c(\"colour\", \"fill\")\n )\n\nggplotly(p)\n# plot has no legend\n```\n\nLegend appears if we remove references to \"fill\" and only use \"colour\".","author":{"url":"https://github.com/MilesMcBain","@type":"Person","name":"MilesMcBain"},"datePublished":"2026-01-09T03:35:59Z","url":"https://github.com/plotly/plotly.R/issues/2467"}
| 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:f0d1d55a-d5f2-737e-4c80-a66189311a5c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0F4:A20F9:13158A1:19594FC:6B011DB5 |
| html-safe-nonce | c257e483a821018bde989ce84ffd4fb8956a0b91e92b7c5750bf9fadd1d8f390 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEY0OkEyMEY5OjEzMTU4QTE6MTk1OTRGQzo2QjAxMURCNSIsInZpc2l0b3JfaWQiOiI3MTAyNzQ0OTM3MTE2MDE2MDUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 840c149709073f51513a49a9f0076cfb46c76c211af9704876c3788f3844f33e |
| hovercard-subject-tag | issue:3795335098 |
| 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/2467/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2f1032b9b005f29665b53bce72ad8a718917f80360fbcd28a33a054c09e0b19a/plotly/plotly.R/issues/2467 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2f1032b9b005f29665b53bce72ad8a718917f80360fbcd28a33a054c09e0b19a/plotly/plotly.R/issues/2467 |
| og:image:alt | Feels related to #2466. If the {ggplot2} facility to bind a custom scale to muiltiple aesthetics is used, the legend is dropped when the plot is converted plotly. Reprex: library(plotly) library(gg... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MilesMcBain |
| 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