Description Usage Arguments Value Examples
Contract polygons in an object
1 | contract_it(spdf, r)
|
spdf |
A SpatialPolygons or SpatialPolygonsDataFrame object |
r |
Radius of contraction |
A SpatialPolygons object with contraction applied
1 2 3 4 5 6 7 | "POLYGON ((30 10, 40 40, 20 40, 10 20, 30 10))" %>% readWKT -> p1
dv <- adjustcolor('darkviolet',alpha.f=0.5)
p1 %>% dilate_it(3) %>% plot(col=dv)
p1 %>% plot(col=dv,add=TRUE)
# A sketchy version
p1 %>% contract_it(3) %>% make_canvas %>% sketch_it(col='chocolate')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.