Skip to contents

This function generates a graphical representation of a Local Climate Zone (LCZ) map provided as a SpatRaster object.

Usage

lcz_plot_map(
  x,
  isave = FALSE,
  show_legend = TRUE,
  save_extension = "png",
  inclusive = FALSE,
  ...
)

Arguments

x

A SpatRaster object containing the LCZ map to be plotted.

isave

Logical. Set to TRUE to save the plot in your working directory.

show_legend

Logical. If TRUE, displays the legend on the plot. If FALSE, the legend will be hidden. Default is TRUE.

save_extension

File format for saving the plot. Options: "png", "jpg", "jpeg", "tif", "pdf", "svg" (default is "png").

inclusive

Logical. Set to TRUE to use a colorblind-friendly palette.

...

Optional arguments to modify axis labels, legend, plot title, subtitle, and caption.

Value

A visual representation of the LCZ map in ggplot format.

See also

See the documentation for lcz_get_map() to obtain an LCZ map.

Examples

if (FALSE) { # \dontrun{
lcz_plot_map(LCZmap)
} # }