plot_units {flexurba} | R Documentation |
Plot the spatial units classification
Description
plot_units()
has been renamed to DoU_plot_units()
to create a more consistent API and to better indicate that this function is specifically designed for plotting the DEGURBA classification generated with DoU_classify_units()
.
Usage
plot_units(
units,
classification = NULL,
level1 = TRUE,
extent = NULL,
column = NULL,
palette = NULL,
labels = NULL,
title = NULL,
scalebar = FALSE,
filename = NULL
)
Arguments
units |
object of class |
classification |
dataframe with the classification of the spatial units, as returned by |
level1 |
logical. Whether the spatial units are classified according to level 1 of the Degree of Urbanisation ( |
extent |
SpatExtent or an object of class "bbox" ( |
column |
character. Column name of the spatial units classification. By default, |
palette |
named vector with the color palette used to plot the spatial units classification. If |
labels |
vector with the labels used in the legend. If |
title |
character. Title of the plot. |
scalebar |
logical. Whether to add a scale bar to the plot. |
filename |
character. Path to the location to save the plot |
Value
ggplot object