plot_geouy {geouy} | R Documentation |
plot_geouy
Description
This function allows you to set ggplot2 theme in our suggested format.
Usage
plot_geouy(x, col, viri_opt = "plasma", l = NULL, other_lab = NULL, ...)
Arguments
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. |
Value
ggplot object of a choropleth map with x geometries and col values.
Examples
secc <- load_geouy("Secciones")
plot_geouy(x = secc, col = "AREA")
[Package geouy version 0.2.8 Index]