[R] Zoom In/Out maps library

rmendelss gmail rmende|@@ @end|ng |rom gm@||@com
Wed Mar 6 23:10:34 CET 2019


world.map <- maps::map("world", plot = FALSE, fill = TRUE)
p <- sf:: st_as_sf(world.map, coords = c('x', 'y'))
map view::map view(p)

HTH,

-Roy

> On Mar 6, 2019, at 1:44 PM, reichmanj using sbcglobal.net wrote:
> 
> R Help
> 
> Anyone know if I can add a zoom In/Out function to the maps available via the "maps" library? Or do I need to use a different mapping library?
> 
> world.map <- map_data("world")
> 
> ggplot(data = world.map) +
>  geom_polygon(mapping = aes(x=long, y=lat, group=group))
> 
> Jeff
> 
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list