Create species colour vector from a sppEquiv
table
sppColors(sppEquiv, sppEquivCol, newVals = NULL, palette)
sppEquiv | table with species name equivalencies between the kNN and final naming formats.
See |
---|---|
sppEquivCol | the column name to use from |
newVals | An optional character vector of extra names to use, e.g., "Mixed". |
palette | An RColorBrewer palette, e.g., "Accent".
Can get RColorBrewer palette names from |
A named vector of colour codes, where the names are the species names
plus any extra names passed with newVals
.