Skip to content

ggridges not implemented for ggplotly #1912

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

Closed
arielhgl opened this issue Jan 21, 2021 · 1 comment · Fixed by #2314
Closed

ggridges not implemented for ggplotly #1912

arielhgl opened this issue Jan 21, 2021 · 1 comment · Fixed by #2314

Comments

@arielhgl
Copy link

arielhgl commented Jan 21, 2021


I am trying to input a ggplot object using the 'geom_density_ridges_gradient' layer, extracted from ggridges package.
However there is a Warning message saying that a function of this package has yet to be implemented in plotly, more specifically:
'In geom2trace.default(dots[[1L]][[1L]], dots[[2L]][[1L]], dots[[3L]][[1L]]) :
geom_GeomDensityRidgesGradient() has yet to be implemented in plotly.'
After that it redirected me to this github issues website for plotly saying to load my example code, so here it is:
This is the table src_dest_prob
source_floor dest_floor llamadas journey prob

1 L1 38 4455 L1-38 0.116
2 38 L1 3527 38-L1 0.0916
3 36 L1 1939 36-L1 0.0503
4 L1 36 1808 L1-36 0.0469
5 40 L1 1317 40-L1 0.0342
6 L1 40 1241 L1-40 0.0322
7 36 38 1083 36-38 0.0281
8 38 43 1076 38-43 0.0279
9 L1 50 1053 L1-50 0.0273
10 50 L1 1022 50-L1 0.0265

g <- src_dest_prob %>% ggplot(aes(x = prob, y = source_floor, fill = stat(x))) + 
  geom_density_ridges_gradient()+
  scale_fill_viridis_c(name = 'probabilidad', option = 'E'){
plotly::ggplotly(g)
@alikhuseynov
Copy link

same here, it would great to get plotly support for ggridges.
Here is related PR #1087 but looks like ggjoy branch is no longer supported.
Any updates on this from plotly developers would be appreciated.
Many Thanks!

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

Successfully merging a pull request may close this issue.

2 participants