readRGB | R Documentation |
This function reads a set of RGB color descriptions (of the form written by
gcolorsel
) from a file and creates a color object containing the
corresponding colors.
readRGB(file, class = "RGB")
file |
The file containing the color descriptions. |
class |
The kind of color object to be returned. |
The file is assumed to contain RGB color descriptions consisting of three integer values in the range from 0 to 255 followed by a color name.
An color object of the specified class containing the color descriptions.
Ross Ihaka
writehex
, readhex
,
hex2RGB
, RGB
, HSV
,
XYZ
, LAB
, polarLAB
,
LUV
, polarLUV
.
## Not run: rgb <- readRGB("pastel.rgb") hsv <- readRGB("pastel.rgb", "HSV") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.