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,
)
speciesStack A RasterStack of percent-cover-by-species layers. An optional vegetation type map (RasterLayer). If not supplied, will be produced internally by makeVegTypeMap. The minimum proportion cover required to consider a species to be the "leading" one. Default 0.8. 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"). the column name to use from sppEquiv. Only necessary if mixedType == 2. If not provided and mixedType == 2, will attempt to use "Boreal". Named vector of colour codes, named using species names. NOTE: plot order will follow this order. The title to use for the generated plots.