4.30.2012

Plotting Symbols, Line Types and Colors in R

When using R, there are 657 named colors, 25 named plotting characters, and 6 named line types. How is a person supposed to remember what they are? I can't, which often results in trial and error in finding something to plot reasonably. Jason Bryer has put together some useful plots, based on previous work by John Mount, for easing the cognitive burden associated with remembering these items. The plots are shown below. The R code to create these directly in R is presented on Jason's website.

Twenty-five named plotting characters in R. For example, pch=16 will plot using filled-in circles.
Six hundred fifty-seven named colors in R. For example, col=657 will use the color "yellow green". Use colors() to see the actual color names.
Six named line types in R. For example, lty=2 will plot using a dashed line.

No comments: