retinal: retinal palette colors ramped to a specified length

Description Usage Arguments Examples

View source: R/scales.R

Description

retinal palette colors ramped to a specified length

Usage

1
retinal(palette = "aurora", n, alpha = 1, reverse = FALSE)

Arguments

palette

Choose from 'jens_palettes' list

n

Number of colors to display

alpha

transparency

reverse

If TRUE, the direction of the colours is reversed.

Examples

1
2
library(jenshelper)
image(volcano, col = retinal("aurora", 20))

barthelmes/jenshelper documentation built on June 15, 2020, 4:09 p.m.