Generate vegetation type map

vegTypeMapGenerator(cohortdata, pixelGroupMap, vegLeadingProportion,
  colors, unitTest = getOption("pemisc.unitTest", FALSE))

Arguments

cohortdata

A different data.table of stuff

pixelGroupMap

A raster

vegLeadingProportion

Numeric between 0-1.

colors

A named vector of color codes. The names MUST match the names of species in cohortdata$speciesCode, plus an optional "Mixed" color

unitTest

A logical indicating whether some internal tests should be run to ensure the function is running correctly.