View source: R/drsimonj_palettes.R
drsimonj_pal | R Documentation |
Return function to interpolate a drsimonj color palette
drsimonj_pal(palette = "main", alpha = 1, reverse = FALSE, ...)
palette |
Character name of palette in drsimonj_palettes |
alpha |
transparency |
reverse |
Boolean indicating whether the palette should be reversed |
... |
Additional arguments to pass to colorRampPalette() |
drsimonj_pal("cool")
library(scales)
scales::show_col(drsimonj_pal("cool")(10))
filled.contour(volcano, color.palette = drsimonj_pal(), asp = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.