brewerRamp: create a ramp of colors starting from the last and proceeding...

Description Usage Arguments Examples

Description

create a ramp of colors starting from the last and proceeding to the y-th of a color brewer palette

Usage

1
brewerRamp(brew.pal, n = 7, y = 3)

Arguments

brew.pal

The color brewer palette. By name.

n

The number of colors to return in the ramp

y

Endpoint on the "light" side of the palette

Examples

1
2
rr <- brewerRamp("Purples", 9)
image(1:length(rr), 1, as.matrix(1:length(rr)), col = rr, ylab = "", xaxt = "n", yaxt = "n", bty = "n")

eriqande/herring documentation built on May 16, 2019, 8:47 a.m.