Description Usage Arguments Value Examples
Create a new plot whose extent fits a given Spatial object. Returns the input spatial object, which is very useful for pipelines.
1 2 | make_canvas(spdf)
spdf %>% make_canvas
|
spdf |
A SpatialPolygons or SpatialPolygonsDataFrame object |
Echos spdf
- this is useful for pipelines using %>%
1 2 3 4 5 | # Here make_canvas is inserted in a pipeline after a simplified and tidied
# map of Irish NUTS3 regions is created. A sketchy rendition is then added to the
# canvas.
data(RA)
RA.spdf %>% small_chop %>% gSimplify(tol=11000) %>% tidy_it %>% make_canvas %>% sketch_it(col='orange')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.