Create species color vector from a sppEquiv table
sppColors(sppEquiv, sppEquivCol, newVals, palette)
sppEquiv | A species equivalency table, e.g., |
---|---|
sppEquivCol | The name of the column to get names 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 color codes, where the names are the species names
plus any extra names passed with newVals
.