powered by
Plot the values of a SpatRaster
mosaic_plot( mosaic, col = custom_palette(c("red", "yellow", "forestgreen"), n = 200), smooth = TRUE, ... )
A NULL object
NULL
SpatRaster
character vector to specify the colors to use. Defaults to custom_palette(c("red", "yellow", "forestgreen")).
custom_palette(c("red", "yellow", "forestgreen"))
logical. If TRUE (default) the cell values are smoothed (only if a continuous legend is used).
Further arguments passed on to terra::plot().
terra::plot()
if (interactive() && requireNamespace("EBImage")) { library(pliman) r <- mosaic_input(system.file("ex/elev.tif", package="terra")) mosaic_plot(r) }
Run the code above in your browser using DataLab