pal_functions {wacolors} | R Documentation |
Output a character vector containing code for a ggplot2
scale
Description
Call 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.
Usage
pal_functions(
palette,
which = NULL,
type = c("discrete", "continuous"),
reverse = FALSE
)
Arguments
palette |
a |
which |
if not |
type |
Either |
reverse |
|
Value
The generated code, invisibly, as a character vector.
Examples
pal_functions("rainier")
[Package wacolors version 0.3.1 Index]