pal_functions | 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.