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().
plot_units(
units,
classification = NULL,
level1 = TRUE,
extent = NULL,
column = NULL,
palette = NULL,
labels = NULL,
title = NULL,
scalebar = FALSE,
filename = NULL
)ggplot object
object of class sf. The spatial units to be displayed on the plot
dataframe with the classification of the spatial units, as returned by DoU_classify_units(). If NULL, it is assumed that the classification results are merged in the units object.
logical. Whether the spatial units are classified according to level 1 of the Degree of Urbanisation (TRUE), or level 2 of the Degree of Urbanisation (FALSE).
SpatExtent or an object of class "bbox" (sf). If not NULL, the spatial units will be filtered based on the provided extent before plotting.
character. Column name of the spatial units classification. By default, "flexurba_L1" when level1=TRUE and "flexurba_L2" when level1=FALSE.
named vector with the color palette used to plot the spatial units classification. If NULL, the standard color palette of the GHSL is used (see GHSL_palette()).
vector with the labels used in the legend. If NULL, the standard labels of the GHSL are used (see GHSL_labels()).
character. Title of the plot.
logical. Whether to add a scale bar to the plot.
character. Path to the location to save the plot