plotCIEchrom {SpecHelpers} | R Documentation |
Draw the 1931 CIE chromaticity diagram
Description
This function draws the 1931 CIE chromaticity diagram with various decorations and annotations.
Usage
plotCIEchrom(gradient = NULL, colSpace = "sRGB", ex = 1, opts = c("D65",
"specLocus", "purples"), title = NULL, ...)
Arguments
gradient |
Character: either |
colSpace |
Character string giving the color space to use for
drawing the gradient. One of |
ex |
Numeric. The 'exposure' to use. The exposure must be
used with extreme care. Larger values of |
opts |
A character vector of options to be employed. One or
more of c("D65", "D50", "C", "E", "specLocus", "purples", "Munsell",
"sRGB", "SWOP", "Apple", "NTSC", "Adobe", "CIE"). The first few of
these are reference white points. |
title |
A character string to be plotted at the top of the diagram. If NULL, the title defaults to "1931 CIE Chromaticity Diagram". If no title is desired, set it to an empty string. |
... |
Additional arguments to be passed downstream, to |
Value
A plot is drawn using grid
graphics.
Warning
The appearance of the color gradient will vary with the device, surface and incident light used to view it and is not likely correct anywhere. The appearance varies strongly with exposure.
Author(s)
Bryan A. Hanson, DePauw University. hanson@depauw.edu
References
For opts = "Munsell"
the Munsell designation by wavelength are taken from Romney & Indow
pnas.org/cgi/doi/10.1073/pnas.162368999
Examples
require("grid")
plotCIEchrom() # no gradient
## These are a too slow for CRAN checks:
## Not run:
plotCIEchrom(gradient = "sl") # basic plot
# Notice there is not much yellow in that plot. Increase
# the exposure to bring in some yellow, at the expense of some blues:
plotCIEchrom(gradient = "sl", ex = 1.4)
# Next show a gradient for the CMYK printing process
# and outline the colors a typical monitor can display.
plotCIEchrom(gradient = getGamutValues("SWOP"), opts = c("D65", "SWOP", "sRGB"))
## End(Not run)