Re: [R] Zoom In/Out maps library

2019-03-07 Thread rmendelss gmail
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, reichm...@sbcglobal.net wrote: > > R Help > > Anyone know if I can add a zoom In/Out function to the maps available via

Re: [R] Zoom In/Out maps library

2019-03-06 Thread Roy Mendelssohn - NOAA Federal via R-help
f::st_as_sf(world.map, coords = c('x', 'y')) >> mapview::mapview(p, legend=FALSE) >> >> >> >> -Original Message- >> From: rmendelss gmail >> Sent: Wednesday, March 6, 2019 4:11 PM >> To: reichm...@sbcglobal.net >> Cc: R help Mailing l

Re: [R] Zoom In/Out maps library

2019-03-06 Thread Roy Mendelssohn - NOAA Federal via R-help
w(p, legend=FALSE) > > > > -Original Message- > From: rmendelss gmail > Sent: Wednesday, March 6, 2019 4:11 PM > To: reichm...@sbcglobal.net > Cc: R help Mailing list > Subject: Re: [R] Zoom In/Out maps library > > world.map <- maps::map("worl

Re: [R] Zoom In/Out maps library

2019-03-06 Thread reichmanj
= FALSE, fill = TRUE) p <- sf::st_as_sf(world.map, coords = c('x', 'y')) mapview::mapview(p, legend=FALSE) -Original Message- From: rmendelss gmail Sent: Wednesday, March 6, 2019 4:11 PM To: reichm...@sbcglobal.net Cc: R help Mailing list Subject: Re: [R] Zoom In/Out maps library w

Re: [R] Zoom In/Out maps library

2019-03-06 Thread Roy Mendelssohn - NOAA Federal via R-help
Or if you prefer plotly: world.map <- maps::map("world", plot = FALSE, fill = TRUE) p <- sf:: st_as_sf(world.map, coords = c('x', 'y')) plotly::ggplotly( ggplot2::ggplot(data = p) + ggplot2::geom_sf() ) > On Mar 6, 2019, at 2:12 PM, Roy Mendelssohn - NOAA Federal > wrote: > > world.map <-

Re: [R] Zoom In/Out maps library

2019-03-06 Thread Roy Mendelssohn - NOAA Federal via R-help
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 2:10 PM, rmendelss gmail wrote: > > world.map <- maps::map("world", plot = FALSE, fill = TRUE) > p <- sf:: st_as_sf(world.map,

[R] Zoom In/Out maps library

2019-03-06 Thread reichmanj
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