wom_pal: Return function to interpolate a wom color palette

View source: R/wom_palettes.R

wom_palR Documentation

Return function to interpolate a wom color palette

Description

Return function to interpolate a wom color palette

Usage

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

Arguments

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

Examples

wom_pal("cool")

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

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

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