Description Usage Arguments Value Examples
Transforms a Spatial object to 'Google Mercator' projection - this makes the object work well with a backdrop.
1 2 | to_osm(spdf)
spdf
|
spdf |
a Spatial* or Spatial*DataFrame object |
spdf
transformed to 'Google Mercator' projection
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')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.