Skip to contents

Overlay color plot of proxy on RGB

Usage

plot_raster_overlay(
  raster,
  hsi_index,
  palette =
    c("viridis”, “magma”, “plasma”, “inferno”, “civids”, “mako”, “rocket”, “turbo"),
  alpha = 0.5,
  extent = NULL,
  ext = NULL,
  write = FALSE
)

Arguments

raster

raster a SpatRaster with calculated hyperspectral indices and RGB layers.

hsi_index

a character indicating hyperspectral index layer to plot.

palette

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

alpha

a number in (0, 1) controlling transparency.

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 overlain on RGB image.