colourSwatch | R Documentation |
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.
colourSwatch(x, ..., newpage = TRUE)
## S3 method for class 'colourMatch'
colourSwatch(x, ..., newpage = TRUE)
## Default S3 method:
colourSwatch(x,
colourList=getOption("roloc.colourList"),
colourMetric=getOption("roloc.colourMetric"),
..., newpage = TRUE)
colourSwatches(x, ..., newpage = TRUE)
## S3 method for class 'colourMatch'
colourSwatches(x, ..., newpage = TRUE)
## Default S3 method:
colourSwatches(x,
colourList=getOption("roloc.colourList"),
colourMetric=getOption("roloc.colourMetric"),
..., newpage = TRUE)
x |
A |
colourList |
A list of colours |
colourMetric |
A colour metric function. See |
... |
Arguments passed to the colour metric function. |
newpage |
Whether to start a new page on the current graphics device. |
These functions are used for their side-effect (a colour match diagram).
Paul Murrell
colourSwatch("red")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.