Hi, I just introduced my class to
ggplotly() and several students reported that
ggplotly() didn't render anything, or rather, rendered an empty plot. I suggested they update R and re-install their packages, in case it was a question of versions being out of sync, but they reported no change.
Here's an example that didn't render:
library(tidyverse) library(plotly) library(gapminder) p <- gapminder %>% ggplot(aes(gdpPercap, lifeExp)) + geom_point() ggplotly(p)
I'd be grateful for any ideas about what might be going wrong and how to fix things!