drsimonj_pal: Return function to interpolate a drsimonj color palette

View source: R/drsimonj_palettes.R

drsimonj_palR Documentation

Return function to interpolate a drsimonj color palette

Description

Return function to interpolate a drsimonj color palette

Usage

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

Arguments

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

Examples

drsimonj_pal("cool")

library(scales)
scales::show_col(drsimonj_pal("cool")(10))

filled.contour(volcano, color.palette = drsimonj_pal(), asp = 1)

emilelatour/laviz documentation built on Nov. 11, 2024, 9:42 p.m.