Skip to contents

Plot spatial map plots of calculated proxies, and optionally save to file

Usage

plot_raster_proxy(
  raster,
  hsi_index,
  calibration = NULL,
  palette = c("viridis", "magma", "plasma", "inferno", "civids", "mako", "rocket",
    "turbo"),
  extent = NULL,
  ext = NULL,
  write = FALSE,
  ...
)

Arguments

raster

a SpatRaster with calculated hyperspectral indices and RGB layers.

hsi_index

a character indicating hyperspectral index layer to plot.

calibration

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

palette

a character indicating one of viridis palettes of choice: "viridis", "magma", "plasma", "inferno", "civids", "mako", "rocket" and "turbo”.

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.