rgb.txt
file.
rgb2matrix(file="/usr/lib/X11/rgb.txt")
rgb.txt
file are integers in the range 0 to 255. They will
be scaled into the range 0.0 to 1.0 in the resulting matrix.
The matrix produced by this function can be used as a "master" dataset
of color values. It can be subsetted to get a matrix of colors that
can be used with the
postscript
printing facility of some of the
device drivers. Note that row names are case sensitive, so the case of
the color names must be matched when subsetting from the matrix. With
X11 color specification the case of the color name is ignored.
Quercia, V. and O'Reilly, T. (1988) X Window System User's Guide. O'Reilly & Associates, Inc.
# Get the rgb.txt file from default location and run postscript rgb.data <- rgb2matrix() postscript (ps.colors = rgb.data[c("OrangeRed", "PaleGreen", "Navy", "DarkMagenta"),])