pal_vector | R Documentation |
Call this function to get the code for a character vector containing a palette. If using RStudio, the code will be loaded at the console prompt; otherwise, it will be printed at the terminal.
pal_vector( palette, n, which = NULL, type = c("discrete", "continuous"), reverse = FALSE )
palette |
The name of the palette (partial matching supported), or an
actual palette from |
n |
The number of colors in the palette. If this exceeds the actual
number and |
which |
if not |
type |
Either |
reverse |
|
The generated code, invisibly, as a character vector.
pal_vector("rainier", 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.