This function plots the interpolated LCZ anomaly, LCZ air temperature, or other environmental variables.
Usage
lcz_plot_interp(
x,
palette = "muted",
direction = 1,
ncol = NULL,
nrow = NULL,
isave = FALSE,
...
)
Arguments
- x
The LCZ map in SpatRaster format, either as a single raster or a raster stack, obtained from functions like lcz_anomaly_map() or lcz_interp_map().
- palette
Gradient palettes available in the tidyterra package. Default is "muted". More palettes can be found in the tidyterra documentation: https://dieghernan.github.io/tidyterra/articles/palettes.html#scale_fill_whitebox_
- direction
Sets order of colors. Default palette is 1. If direction is -1, palette color order is reversed
- ncol
Number of columns in the plot.
- nrow
Number of rows in the plot.
- isave
Logical, indicating whether to save the plot to your directory. Default is FALSE.
- ...
Additional arguments to modify axis, legend, and plot labels, including title, subtitle, and caption.
See also
See the documentation for lcz_anomaly_map() to obtain LCZ anomaly rasters and lcz_interp_map() for air temperature rasters.
Examples
# Interpol your air temperature
# lcz_plot_interp(my_interp_map, sp.res = 100, tp.res = "hour",
# year = 2019, month= 2, day = 6, hour = 5,
# caption = "LCZ4r, 2024", fill = "Degree Celsius")
# Plot multiple interpolated rasters
# lcz_plot_interp(my_interp_map, sp.res = 100, tp.res = "hour",
# year = 2019, month= 2, day = 6, by = "daylight",
# caption = "LCZ4r, 2024", fill = "Degree Celsius")