Learn R Programming

barsurf (version 0.7.0)

54_color_sequence_functions: Color Sequences and Color Fitting Functions

Description

These are convenience functions that combine creating a litmus object and evaluating it, into one step.

Usage

gold.seq (n, …)
blue.seq (n, …, hcv=FALSE)
green.seq (n, …, hcv=FALSE)
rainbow.seq (n, …)
heat.seq (n, …)

gold.fit (x, …) blue.fit (x, …, hcv=FALSE) green.fit (x, …, hcv=FALSE) rainbow.fit (x, …) heat.fit (x, …)

Arguments

n

Integer, the number of points, in the sequence.

x

Numeric vector.

hcv

Logical, if true, use the high color variation option.

Ignored.

Value

A character vector of R colors.

Details

The .seq functions construct a litmus object over the interval one to n, and then evaluate it with one to n.

The .fit function fit a litmus object to x, and then evaluate it with x.

Note that rainbow.seq is similar to colorspace::rainbow_hcl.

References

Refer to the vignette for an overview, references and better examples.

See Also

litmus, litmus.fit

Predefined Litmus Objects, Predefined Litmus-Fitting Functions

Examples

Run this code
# NOT RUN {
blue.seq (10)
blue.fit (rnorm (30) )
# }

Run the code above in your browser using DataLab