plotly / plotly.R

An interactive graphing library for R
https://plotly-r.com
Other
2.56k stars 626 forks source link

Implement geom_GeomDensity2dFill #2273

Open stephanmg opened 1 year ago

stephanmg commented 1 year ago

Contours of 2D density estimates would be very helpful in my Shiny application I'm developing which soon should be published. We would like to use plotly.

Brief description of the problem:

Warning in geom2trace.default(dots[[1L]][[60L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
  geom_GeomDensity2dFilled() has yet to be implemented in plotly.
  If you'd like to see this geom implemented,
  Please open an issue with your example code at
  https://github.com/ropensci/plotly/issues

Create plot with geom_density_2d_filled and this has not yet been implemented.

p <- ggplot(df, aes(Y_cm, X_cm)) + geom_density_2d_filled(contour_var="ndensity") 
stephanmg commented 8 months ago

I do not understand this issue, if I run it outside of Shiny/R the plot is produced fine.