Create raster of leading vegetation types and Plot a bar chart summary and a vegetation type map. NOTE: plot order will follow colors order.

plotVTM(
  speciesStack = NULL,
  vtm = NULL,
  vegLeadingProportion = 0.8,
  sppEquiv,
  sppEquivCol,
  colors,
  title = "Leading vegetation types"
)

Arguments

speciesStack

A SpatRaster, RasterStack or RasterBrick of percent-cover-by-species layers.

vtm

An optional vegetation type map (RasterLayer or SpatRaster). If not supplied, will be produced internally by makeVegTypeMap.

vegLeadingProportion

Numeric between 0-1, determining the relative biomass threshold a species needs to pass to be considered "leading".

sppEquiv

table with species name equivalencies between the kNN and final naming formats. See data("sppEquivalencies_CA", "LandR"). For functions that have mixedType, this only necessary if mixedType == 2. If not provided and mixedType == 2, will attempt to use data("sppEquivalencies_CA", "LandR").

sppEquivCol

the column name to use from sppEquiv. For functions that have mixedType, only necessary if mixedType == 2. If not provided and mixedType == 2, will attempt to use "Boreal".

colors

Named vector of colour codes, named using species names. NOTE: plot order will follow this order.

title

The title to use for the generated plots.

Author

Eliot McIntire