sppColors: Create species colour vector from a 'sppEquiv' table

Description Usage Arguments Value

View source: R/plotting.R

Description

Create species colour vector from a sppEquiv table

Usage

1
sppColors(sppEquiv, sppEquivCol, newVals = NULL, palette)

Arguments

sppEquiv

table with species name equivalencies between the kNN and final naming formats. See data("sppEquivalencies_CA", "LandR"). Only necessary if mixedType == 2. If not provided and mixedType == 2, will attempt to use data("sppEquivalencies_CA", "LandR").

sppEquivCol

the column name to use from sppEquiv. Only necessary if mixedType == 2. If not provided and mixedType == 2, will attempt to use "Boreal".

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 colour codes, where the names are the species names plus any extra names passed with newVals.


PredictiveEcology/LandR documentation built on Jan. 24, 2021, 12:52 a.m.