Skip to content

ECDF ordering not working with ggplotly #1377

New issue

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

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

Already on GitHub? # to your account

Closed
ghost opened this issue Oct 24, 2018 · 1 comment · Fixed by #2065
Closed

ECDF ordering not working with ggplotly #1377

ghost opened this issue Oct 24, 2018 · 1 comment · Fixed by #2065

Comments

@ghost
Copy link

ghost commented Oct 24, 2018

ggplotly seems to not recreate plots when using stat_ecdf()

library(tidyverse)
library(plotly)

 p = ggplot(mtcars, 
 aes(x = mpg, 
 group = cyl, 
 color = cyl)) + 
stat_ecdf() + 
theme_classic()

# This works
p
# this is weird
ggplotly(p)

Here is the output:

p

screen shot 2018-10-24 at 12 20 40 pm

ggplotly(p)

screen shot 2018-10-24 at 12 20 29 pm

@ghost
Copy link
Author

ghost commented Oct 24, 2018

If I order the dataframe before passing to ggplotly I get close, but not all the way.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant