Plots the rasters produced by lcz_interp_map() or lcz_anomaly_map().
Usage
lcz_plot_interp(
x,
palette = "muted",
direction = 1,
isave = FALSE,
save_extension = "png",
legend_name = NULL,
...,
lang = "en"
)Arguments
- x
A
SpatRaster(single layer or stack).- palette
A gradient palette from tidyterra (
scale_fill_whitebox_c). Default"muted".- direction
Colour order:
1(default) or-1(reversed).- isave
Logical. Save the plot in
LCZ4r_output/.- save_extension
Image format:
"png","jpg","tif","pdf"or"svg".- legend_name
Legend title.
NULL(default) uses a translated "Value".- ...
Passed to
ggplot2::labs().- lang
Language used for messages and errors. See
lcz_langs(). Defaults to"en".
Examples
if (FALSE) { # \dontrun{
my_interp <- lcz_interp_map(lcz_map, df, var = "airT", station_id = "station")
lcz_plot_interp(my_interp)
} # }
