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