Create species color vector from a sppEquiv table

sppColors(sppEquiv, sppEquivCol, newVals, palette)

Arguments

sppEquiv

A species equivalency table, e.g., data("sppEquivalencies_CA").

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 rownames(RColorBrewer::brewer.pal.info).

Value

A named vector of color codes, where the names are the species names plus any extra names passed with newVals.