# NOT RUN {
library(sf)
mtq <- st_read(system.file("shape/martinique.shp", package="cartography"))
mtq_pencil <- getPencilLayer(x = mtq)
plot(st_geometry(mtq_pencil), col = 1:8)
plot(st_geometry(mtq), add = TRUE)
typoLayer(x = mtq_pencil, var="STATUT", add = FALSE,
col = c("aquamarine4", "yellow3","wheat"),
legend.values.order = c("Pr<U+00E9>fecture de r<U+00E9>gion",
"Sous-pr<U+00E9>fecture",
"Commune simple"),
legend.pos = "topright",
legend.title.txt = "Status")
plot(st_geometry(mtq), add = TRUE, ldy=2)
layoutLayer(title = "Commune Status",
author = "UMS RIATE, 2017",
sources = "IGN, 2016",
scale = NULL)
# }
Run the code above in your browser using DataLab