Learn R Programming

SWMPr (version 2.5.0)

gradcols: Get colors for plots

Description

Get gradient default colors for plots

Usage

gradcols(col_vec = NULL)

Value

A character vector of colors in hexidecimal notation.

Arguments

col_vec

chr string of plot colors to use. Any color palette from RColorBrewer can be used as a named input. Palettes from grDevices must be supplied as the returned string of colors for each palette.

Details

This is a convenience function for retrieving a color palette. Palettes from RColorBrewer will use the maximum number of colors. The default palette is 'Spectral'.