I was trying to create a Plotly map in R using plot_geo. I wasn't getting any errors, but the Viewer was returning a blank map. The Plotly mode bar was showing up, but everything else was blank.
I couldn't even get the code below from the plot_geo help page to work:
library(plotly)
library(dplyr)
map_data("world", "canada") %>%
group_by(group) %>%
plot_geo(x = ~long, y = ~lat) %>%
add_markers(size = I(1))
Has anyone else ran into this problem? I haven't had any trouble with plotly in R in the past.
I used your code but I had to load the following packages first:
The map generates correctly on my device, i.e. the borders of Canada are highlighted. The remaining countries don't have borders:
I'm using the plotly version 4.5.6.9000.
If you are still running into your problems, try updating packages used. Restarting your R session could also help.