Learn R Programming

roloc (version 0.1-2)

colourSwatch: Colour Conversion Diagram

Description

Draw a diagram of a colour conversion with four columns: original colour specification, plus swatch, matching colour name, plus swatch. colourSwatches can show multiple matches per colour specification.

Usage

colourSwatch(x, ..., newpage = TRUE)
# S3 method for colourMatch
colourSwatch(x, ..., newpage = TRUE)
# S3 method for default
colourSwatch(x,
                               colourList=getOption("roloc.colourList"),
                               colourMetric=getOption("roloc.colourMetric"),
                               ..., newpage = TRUE)
colourSwatches(x, ..., newpage = TRUE)
# S3 method for colourMatch
colourSwatches(x, ..., newpage = TRUE)
# S3 method for default
colourSwatches(x,
                               colourList=getOption("roloc.colourList"),
                               colourMetric=getOption("roloc.colourMetric"),
                               ..., newpage = TRUE)

Value

These functions are used for their side-effect (a colour match diagram).

Arguments

x

A "colourMatch" object or an R colour specification

colourList

A list of colours

colourMetric

A colour metric function. See colourMatch for details.

...

Arguments passed to the colour metric function.

newpage

Whether to start a new page on the current graphics device.

Author

Paul Murrell

Examples

Run this code
colourSwatch("red")

Run the code above in your browser using DataLab