palette_RYB: Create Smooth Red-Yellow-Blue Palette

Description Usage Arguments Value References See Also Examples

View source: R/palette_RYB.R

Description

Creates a vector of (n) contiguous colors (red-yellow-blue).

Usage

1
palette_RYB(n = 100)

Arguments

n

number of colors.

Value

A character vector with n color codes.

References

This function is a wrapper around a modified palette according to:

Erich Neuwirth <erich.neuwirth@univie.ac.at> (2007). RColorBrewer: ColorBrewer palettes. R package version 1.0-2.

The palette is based on http://www.colorbrewer.org provided by Cynthia Brewer, Mark Harrower and The Pennsylvania State University.

See Also

rainbow, heat.colors, topo.colors

Examples

1
2
3
4
col <- palette_RYB(10)
x <- 1:100
z <- x %o% x
image(z, col=col)

simecolUtil documentation built on May 2, 2019, 5:57 p.m.