c4a_palettes {cols4all} | R Documentation |
Get available palette names and series
Description
c4a_palettes
lists all available cols4all color palettes. Palettes are organized by series. The available series are listed with c4a_series
. Palettes are also organized per functional type, where we currently support: categorical "cat"
, sequential "seq"
, and diverging "div"
" palette types. The function c4a_types
lists all available types. The function c4a_overview
gives an overview table of the number of palette per series and type. In an IDE with auto-completion (such as RStudio) it is possible to browse through the palette names with .P
(using $
like in lists).
Usage
c4a_palettes(
type = c("all", "cat", "seq", "div"),
series = NULL,
full.names = TRUE
)
c4a_series(type = c("all", "cat", "seq", "div"), as.data.frame = TRUE)
c4a_types(series = NULL, as.data.frame = TRUE)
c4a_overview()
.P
Arguments
type |
type of color palette: one of |
series |
series to list the palettes from. Run |
full.names |
should full names, i.e. with the prefix "series."? By default |
as.data.frame |
should |
Format
An object of class environment
of length 17.
Value
names of the loaded color palettes
See Also
References of the palettes: cols4all-package
.
Examples
c4a_series()
c4a_types()
c4a_overview()
c4a_palettes(type = "cat", series = "tol")
c4a_palettes(type = "seq", series = "kovesi")
# handy when auto-completion is available:
.P$kovesi$seq$linear_terrain