Create species colour vector from a sppEquiv
table
sppColors(sppEquiv, sppEquivCol, newVals = NULL, palette)
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")
.
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".
An optional character vector of extra names to use, e.g., "Mixed".
An RColorBrewer palette, e.g., "Accent".
Can get RColorBrewer palette names from rownames(RColorBrewer::brewer.pal.info)
.
A named vector of colour codes, where the names are the species names
plus any extra names passed with newVals
.