plotly/plotly.R

geom_GeomDumbbell() has yet to be implemented in plotly

fgabriel1891 opened this issue · 0 comments

Would you mind adding this funcitonality?

Thanks!!


install.packages('ggalt')
library(ggalt)

 data %>%
  ggplot(aes(y = reorder(Department, median_completion, decreasing = TRUE))) +
  geom_dumbbell(aes(x = min_completion, xend = max_completion), 
                color = "gray70", size = 1.5, point.size.l = 3, point.size.r = 3) +
  geom_point(aes(x = median_completion), color = "blue", size = 3) +
  labs(y = "Department", x = "Total Percent Completion of Required Course hours") +
  theme_minimal()

plotly::ggplotly(db_plot) #fails to render the confidence intervals interactively

original static plot
Image

interactive version with plotly
Image