Plot a layout layer.
layoutLayer(title = "Title of the map, year", sources = "Source(s)", author = "Author(s)", col = "black", coltitle = "white", theme = NULL, bg = NULL, scale = 0, frame = TRUE, north = FALSE, south = FALSE, extent = NULL)
If extent is not set, plot.new has to be called first. The size of the title box in layoutLayer is fixed to 1.2 lines height.
data("nuts2006") # Example 1 plot(nuts0.spdf, col = "grey60",border = "grey20", add=FALSE)# Layout plot layoutLayer()# Example 2 plot(nuts0.spdf, col=NA, border = NA, bg ="#A6CAE0")plot(world.spdf, col = "#E3DEBF", border=NA, add=TRUE)plot(nuts0.spdf, col = "#D1914D",border = "white", lwd=1, add=TRUE)layoutLayer(col = NA, coltitle = "black", sources = "", author = "", frame = FALSE, south = TRUE)# Example 3 nuts3.df$gdphab <- 1000000 * nuts3.df$gdppps2008 / nuts3.df$pop2008 choroLayer(spdf = nuts3.spdf, df = nuts3.df, var = "gdphab", legend.pos = "right", border = NA, nclass = 6, col = carto.pal('green.pal', 6))# Layout plot layoutLayer(title = "GDP per Inhabitants", sources = "", author = "Eurostat, 2008", theme = "green.pal")