act_pal | R Documentation |
Generates a function to create a palette based on those included in the package.
act_pal(palette = "ncezid", reverse = FALSE)
palette |
name of pre-fab palette on which to base output (in quotes) |
reverse |
boolean variable defaulting to FALSE. Set to TRUE if want to reverse |
... |
arguments passed to colorRampPalette |
A function which outputs a palette of desired length, interpolating between stated colors if necessary.
pal_5 <- act_pal("aladdin_sane")(5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.