See the hexadecimal color chart below.
Color names for r. Heres another set of common color schemes used in R this time via the image function. Note that you can see a complete list of the 657 colors typing colors. 1 white aliceblue antiquewhite antiquewhite1 5 antiquewhite2 antiquewhite3 antiquewhite4 aquamarine 9 aquamarine1 aquamarine2 aquamarine3.
The function colors returns the color names which R knows about. Color name color name darkgreen darkgrey darkkhaki darkmagenta darkolivegreen darkolivegreen1 darkolivegreen2 darkolivegreen3 darkolivegreen4 darkorange darkorange1 darkorange2 darkorange3 darkorange4 darkorchid darkorchid1 darkorchid2 darkorchid3 darkorchid4 darkred darksalmon darkseagreen darkseagreen1 darkseagreen2 darkseagreen3 darkseagreen4 darkslateblue darkslategray. RGB red green blue.
The default intensity scale in R ranges from 0-1. You can take a look at them all with the colors function or simply check this R color pdf. The colors of filled objects like bars can be set using fillred.
Name The most common method is to call a color by its name. R offers about 657 color names. And 20 blacks or names for black anyway.
In R colors can be specified either by name eg col red or as a hexadecimal RGB triplet such as col FFCC00. Color Section About line chart. 20 color names for gray shades and tints.
R offers about 657 color names. Youll learn how to use the top 6 predefined color palettes in R available in different R packages. And not the eye-popping fluorescent old-school web 10 shades of color youll find on many sites.