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