You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)..
This issue is most likely due to a change introduced in ggplot2 3.4.0 which now defaults to stat="align" (which does some form of interpolation) for geom_area and which is not fully supported by ggplotly (a related issue arises when it comes to the tooltips, see this SO question).
But for your case that can be fixed by setting stat="identity" in geom_area:
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: