gradcols {WRTDStidal} | R Documentation |
Get colors for plots
Description
Gets colors used for WRTDS plots
Usage
gradcols(col_vec = NULL)
Arguments
col_vec |
chr string of plot colors to use, typically passed to |
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'.
Value
A character vector of colors in hexadecimal notation.
See Also
Examples
## defaults
gradcols()
## another RColorBrewer palette
gradcols('Pastel2')
## a silly example
gradcols(rainbow(7))
[Package WRTDStidal version 1.1.4 Index]