54_color_sequence_functions: Color Sequences and Color Fitting Functions

Description Usage Arguments Details Value References See Also Examples

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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.

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.

Value

A character vector of R colors.

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

1
2
blue.seq (10)
blue.fit (rnorm (30) )

barsurf documentation built on Jan. 20, 2021, 5:08 p.m.