Skip to contents

Spatial map plots of RGB image

Usage

plot_raster_rgb(
  raster,
  calibration = NULL,
  extent = NULL,
  ext = NULL,
  write = FALSE
)

Arguments

raster

a SpatRaster with calculated hyperspectral indices and RGB layers or just RGB layers.

calibration

result of pixel_to_distance or actual call to pixel_to_distance with appropriate input.

extent

an extent or SpatVector used to subset SpatRaster. Defaults to the entire SpatRaster.

ext

character, a graphic format extension.

write

logical, should resulting SpatRaster be written to file.

Value

a plot with color map of selected hyperspectral index.