sketch_it: Sketchy drawing of a SpatialPolygons or...

Description Usage Arguments Value Examples

Description

Draws a SpatialPolygons or SpatialPolygonsDataFrame object in a 'hand drawn' style.

Usage

1
2
sketch_it(spdf,rough=0.05,...)
spdf %>% sketch_it(rough=0.05,...)

Arguments

rough

controls the 'roughness' of the sketched polygon edges

...

parameters passed to lines

spdf

a SpatialPolygons or SpatialPolygonsDataFrame object

Value

the input spdf - useful for pipelines

Examples

1
2
3
"POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))" %>% readWKT -> p1
# Create a blank canvas with extent containing p1
p1 %>% make_canvas %>% sketch_it(col='indianred')

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