ohsu_pal: Return function to interpolate an OHSU color palette

View source: R/ohsu_palettes.R

ohsu_palR Documentation

Return function to interpolate an OHSU color palette

Description

Return function to interpolate an OHSU color palette

Usage

ohsu_pal(palette = "main", alpha = 1, reverse = FALSE, ...)

Arguments

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()

Examples

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)

emilelatour/laviz documentation built on Oct. 15, 2023, 1:41 p.m.