Learn R Programming

barsurf (version 0.7.0)

41_supporting_methods: Supporting Methods

Description

Print and plot methods for litmus and mlitmus objects.

Usage

# S3 method for litmus
print(x, …)
# S3 method for mlitmus
print(x, …)

# S3 method for litmus plot(x, n=200, …) # S3 method for mlitmus plot(x, n=200, …)

Arguments

x

A litmus or mlitmus object.

n

Integer, number of strips.

Ignored.

Details

The plot method calls colorspace::swatchplot, with a vector of colors.

References

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

See Also

litmus, mlitmus

Examples

Run this code
# NOT RUN {
colf <- blue.litmus ()

print (colf)
plot (colf)
# }

Run the code above in your browser using DataLab