pal_functions {wacolors} | R Documentation |
ggplot2
scaleCall this function to get the code for the scale_*
functions for a palette.
If using RStudio, the code will be loaded at the console prompt;
otherwise, it will be printed at the terminal. Assumes that ggplot2
has
been loaded into the namespace, or will be by the time the scales are used.
pal_functions(
palette,
which = NULL,
type = c("discrete", "continuous"),
reverse = FALSE
)
palette |
a |
which |
if not |
type |
Either |
reverse |
|
The generated code, invisibly, as a character vector.
pal_functions("rainier")