# NOT RUN {
library(sf)
library(cartography)
data("GrandParisMetropole")
# Map wealthiest territories
synthesis <- mapmst(x = com, var1 = "INC", var2 = "TH", key = "EPT",
order = 1,threshold = 125, superior = TRUE)
# add a layout and adapted legend
layoutLayer(title = "Multiscalar synthesis - Income per household 2013",
sources = "GEOFLA<U+00AE> 2015 v2.1, Apur, impots.gouv.fr",
north = TRUE, scale = 5, tabtitle = TRUE, frame = FALSE, theme = "red.pal",
author = "MTA
100: Deviation average
G: Situation as compared to the global context (Grand Paris Area)
T: Situation as compared to the territorial context (EPT of belonging)
S: Situation as compared to the neigbourhood context (contiguity order 1)")
# add label territorial objects above 125% for all the deviations
labelLayer(x = synthesis[synthesis$mst == 7, ], txt = "LIBCOM", cex = 0.6,
halo = TRUE, overlap = FALSE)
# Map poorest territories
synthesis <- mapmst(x = com, var1 = "INC", var2 = "TH", key = "EPT",
order = 1,threshold = 75, superior = FALSE)
# add a layout
layoutLayer(title = "Multiscalar synthesis - Income per household 2013",
sources = "GEOFLA<U+00AE> 2015 v2.1, Apur, impots.gouv.fr",
north = TRUE, scale = 5, tabtitle = TRUE, frame = FALSE, theme = "red.pal",
author = "MTA
100: Deviation average
G: Situation as compared to the global context (Grand Paris Area)
T: Situation as compared to the territorial context (EPT of belonging)
S: Situation as compared to the neigbourhood context (contiguity order 1)")
# add labels for territorial objects under 75 % for all the deviations
labelLayer(x = synthesis[synthesis$mst == 7, ], txt = "LIBCOM", cex = 0.6,
halo = TRUE)
# }
Run the code above in your browser using DataLab