gradcols: Get colors for plots

View source: R/gradcols.R

gradcolsR Documentation

Get colors for plots

Description

Get gradient default colors for plots

Usage

gradcols(col_vec = NULL)

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'.

Value

A character vector of colors in hexidecimal notation.


SWMPr documentation built on June 24, 2024, 5:08 p.m.