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 RasterStack of percent-cover-by-species layers.

vtm

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

vegLeadingProportion

The minimum proportion cover required to consider a species to be the "leading" one. Default 0.8.

sppEquiv

table with species name equivalencies between the kNN and final naming formats. See data("sppEquivalencies_CA", "LandR"). 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. 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.