plot_geouy | R Documentation |
This function allows you to set ggplot2 theme in our suggested format.
plot_geouy(x, col, viri_opt = "plasma", l = NULL, other_lab = NULL, ...)
x |
An sf object like load_geouy() results |
col |
Variable of "x" to plot (character) |
viri_opt |
A character string indicating the colormap option to use. Four options are available: "magma" (or "A"), "inferno" (or "B"), "plasma" (or "C"), "viridis" (or "D", the default option) and "cividis" (or "E") |
l |
If NULL none label added, if "%" porcentage with 1 decimal labels, if "n" the value is the label, if "c" put other variable in other_lab. Default NULL |
other_lab |
If l is "c" put here the variable name for the labels. |
... |
All parameters allowed from ggplot2 themes. |
ggplot object of a choropleth map with x geometries and col values.
secc <- load_geouy("Secciones")
plot_geouy(x = secc, col = "AREA")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.