This function calculates the areas of LCZ classes in both percentage and square kilometers.
Usage
lcz_cal_area(
x,
iplot = TRUE,
isave = FALSE,
inclusive = FALSE,
xlab = "LCZ code",
ylab = "Area [square kilometer]",
...
)
Arguments
- x
A raster SpatRaster layer containing LCZ classes.
- iplot
Logical, indicating whether to create a plot (default is TRUE).
- isave
Save the plot into your directory.
- inclusive
Set to TRUE to a colorblind-friendly palette.
- xlab
x-axis name.
- ylab
y-axis name.
- ...
Additional arguments to modify axis, legend, and plot labels, including title, subtitle and caption.