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
Support for ggplot stacked geom_area plots? #2320
Comments
This issue is most likely due to a change introduced in But for your case that can be fixed by setting library(plotly, warn=FALSE)
#> Loading required package: ggplot2
df <- tidyr::expand_grid(
tibble::tibble(x = seq(10), y = seq(10)),
g = letters[1:5]
)
pl <- ggplot(df) +
geom_area(aes(x = x, y = y, fill = g),
position = "fill", stat = "identity"
)
ggplotly(pl) Created on 2024-04-27 with reprex v2.1.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have a stacked geom_area plot in ggplot which looks fine, but somehow the ggplotly version shows empty. Below is the toy example. (the issue seems to do with position_fill(), if getting rid of it, the plot can run normally)..
R version: 4.3.2, plotly version: 4.10.3
The text was updated successfully, but these errors were encountered: