plot_geo

0th

Percentile

Initiate a plotly-geo object

Use this function instead of plot_ly() to initialize a plotly-geo object. This enforces the entire plot so use the scattergeo trace type, and enables higher level geometries like add_polygons() to work

Usage
plot_geo(data = data.frame(), ...)
Arguments
data

A data frame (optional).

...

arguments passed along to plot_ly().

See Also

plot_ly(), plot_mapbox(), ggplotly()

Aliases
  • plot_geo
Examples
library(plotly) # NOT RUN { map_data("world", "canada") %>% group_by(group) %>% plot_geo(x = ~long, y = ~lat) %>% add_markers(size = I(1)) # }
Documentation reproduced from package plotly, version 4.5.2, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.