gradcols function

Get colors for plots

Get colors for plots

Gets colors used for WRTDS plots

gradcols(col_vec = NULL)

Arguments

  • col_vec: chr string of plot colors to use, typically passed to scale_colour_gradientn for shading. 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.

Returns

A character vector of colors in hexadecimal notation.

Details

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

Examples

## defaults gradcols() ## another RColorBrewer palette gradcols('Pastel2') ## a silly example gradcols(rainbow(7))

See Also

dynaplot, gridplot, wtsplot

  • Maintainer: Marcus W. Beck
  • License: CC0
  • Last published: 2023-10-20

Useful links