Category Archives: R Colors

R Color Basics

R Color Basics

R graphical devices support a broad range of colors and color functions.  The colors() command with no input arguments returns a list of all available colors in R.  Presently, there are 657 colors.  In practice, declaring colors can be achieved three ways:

  • character names (e.g. “red”, “orange”, “yellow”),
  • 3-digit RGB values (e.g. 255 0 0265 155 0255 255 0), and
  • hexadecimal strings (e.g. “#FF0000”, “#FFA500”, “#FFFF00”).
Posted in R Colors | Leave a comment