Learn R Programming

HYPEtools (version 1.6.4)

CustomColors: Custom color ramp palettes

Description

Pre-defined color ramp palettes which are used in other HYPEtools functions.

Usage

ColNitr(n)

ColPhos(n)

ColPrec(n)

ColTemp(n)

ColQ(n)

ColDiffTemp(n)

ColDiffGeneric(n)

ColBlues(n)

ColReds(n)

ColGreens(n)

ColYOB(n)

ColPurples(n)

Value

All functions return vectors of length n with interpolated RGB color values in hexadecimal notation (see rgb).

Arguments

n

Integer, number of colors to generate.

Details

These functions build on calls to colorRampPalette.

Examples

Run this code
ColNitr(10)
ColGreens(6)
barplot(rep(1, 11), col = ColTemp(11))

Run the code above in your browser using DataLab