plot_grid {flexurba} | R Documentation |
Plot the grid cell classification
Description
plot_grid()
has been renamed to DoU_plot_grid()
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_grid()
.
Usage
plot_grid(
classification,
extent = NULL,
level1 = TRUE,
palette = NULL,
labels = NULL,
title = NULL,
scalebar = FALSE,
filename = NULL
)
Arguments
classification |
SpatRaster / character. A SpatRaster with the grid cell classification or the path to the grid cell classification file |
extent |
SpatExtent. If not |
level1 |
logical. Whether the grid is classified according to level 1 of the Degree of Urbanisation ( |
palette |
named vector with the color palette used to plot the grid cell classification. If |
labels |
vector with the labels used in the legend. If |
title |
character. Title of the plot.t |
scalebar |
logical. Whether to add a scale bar to the plot. |
filename |
character. Path to the location to save the plot |
Value
ggplot object