R/Colors

From QERM Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
==Colors==
 
==Colors==
  
Colors in R can be defined by name ('''blue''', '''black''', '''darkgoldenrod''', '''cornsilk''', etc.) or according to [[Wikipedia:RGB|RGB]] values (decimal or hexadecimal.   Here's a link to a very useful R color chart:
+
Colors in R can be defined by name ('''blue''', '''black''', '''darkgoldenrod''', '''cornsilk''', etc.), according to [[Wikipedia:RGB|RGB]] values, according to HSL and HCL values (variously, permutations of [Wikipedia:hue|hue]], [[Wikipedia:saturation (color)|saturation]], [[Wikipedia:chroma|chroma]] and [[Wikipedia:luminescence|luminescence]], see: [[Wikipedia:HSL and HSV]] and [[Wikipedia:Munsell color system]]), most definable either as decimal values between 0 to 1 or hexadecimal values between 0 and F.
 +
 
 +
See the '''colors''' command for a list of built in colros.
 +
 
 +
See '''rgb''', '''hsv''' and '''hcl''' commands for more on defining custom colors.
 +
 
 +
See '''heat.colors''', '''topo.colors''' and '''rainbow''' for automatic generation of appealing color spectra.
 +
 
 +
Here are a few links to handy R color charts:
  
 
: http://research.stowers-institute.org/efg/R/Color/Chart/
 
: http://research.stowers-institute.org/efg/R/Color/Chart/
 +
: http://www.stat.columbia.edu/~tzheng/files/Rcolor.pdf
  
 
==See Also==
 
==See Also==
 
[[R tips]]
 
[[R tips]]

Revision as of 22:49, 14 April 2008

Colors

Colors in R can be defined by name (blue, black, darkgoldenrod, cornsilk, etc.), according to RGB values, according to HSL and HCL values (variously, permutations of [Wikipedia:hue|hue]], saturation, chroma and luminescence, see: Wikipedia:HSL and HSV and Wikipedia:Munsell color system), most definable either as decimal values between 0 to 1 or hexadecimal values between 0 and F.

See the colors command for a list of built in colros.

See rgb, hsv and hcl commands for more on defining custom colors.

See heat.colors, topo.colors and rainbow for automatic generation of appealing color spectra.

Here are a few links to handy R color charts:

http://research.stowers-institute.org/efg/R/Color/Chart/
http://www.stat.columbia.edu/~tzheng/files/Rcolor.pdf

See Also

R tips

Personal tools