to_osm: Transform to OpenStreetMap (*Google Mercator*) Projection

Description Usage Arguments Value Examples

Description

Transforms a Spatial object to 'Google Mercator' projection - this makes the object work well with a backdrop.

Usage

1
2
to_osm(spdf)
spdf 

Arguments

spdf

a Spatial* or Spatial*DataFrame object

Value

spdf transformed to 'Google Mercator' projection

Examples

1
2
3
4
data(all_ireland) 
# Transform to osm projection,  enjoy nice rectangular image...
all_ireland %>% to_osm %>% 
  make_backdrop(type='nps') %>% plot_it(border='navyblue')

chrisbrunsdon/caricRture documentation built on May 13, 2019, 6:52 p.m.