Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ggplotly does not show point size legend for geom_point #2163

Open
HenriettaHolze opened this issue Jul 26, 2022 · 1 comment
Open

ggplotly does not show point size legend for geom_point #2163

HenriettaHolze opened this issue Jul 26, 2022 · 1 comment

Comments

@HenriettaHolze
Copy link

When using ggploty on a geom_point plot the point size legend is not shown.

Minimal example to reproduce:

library(ggplot2)
library(plotly)

p <- ggplot(mtcars, aes(x = wt, 
                        y = mpg, 
                        size = qsec))
p <- p + geom_point()
ggplotly(p)

Expected output from ggplot:
image

Ouput of ggplotly:
image

It does, however, show the color legend.

p <- ggplot(mtcars, aes(x = wt, 
                        y = mpg, 
                        color = qsec))
p <- p + geom_point()
ggplotly(p)

image

Freshly installed R 4.2.1, plotly_4.10.0 and ggplot2_3.3.6.

@HenriettaHolze
Copy link
Author

I realized that bubble charts in plotly also don't have a size legend as described in #705. Is there any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant