make_canvas: Create a new canvas

Description Usage Arguments Value Examples

Description

Create a new plot whose extent fits a given Spatial object. Returns the input spatial object, which is very useful for pipelines.

Usage

1
2
make_canvas(spdf)
spdf %>% make_canvas

Arguments

spdf

A SpatialPolygons or SpatialPolygonsDataFrame object

Value

Echos spdf - this is useful for pipelines using %>%

Examples

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')

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