May 23, 2018
Timothée Giraud, « Colored Pencil Maps with R », R Géomatique, ID : 10670/1.v2t2ma
This post shows how to build a colored pencil map with R. The cartography package (in its development version) has gained a getPencilLayer() function that transforms a POLYGON or MULTIPOLYGON layer into a MULTILINESTRING layer mimicking a pencil drawing pattern. The following code details how to use the function: #download the dev version of cartography devtools::install_github("riatelab/cartography") library(cartography) library(sf) # import a vector layer (here a shapefile) mtq - st_read(...