Choosing colors in R

February 2, 2009
55 Views

R has very powerful capabilities for choosing colors to use in statistical graphics. With the rgb function, you can choose any color from the spectrum by choosing its red, green, and blue components. Alternatively, you can choose from 657 “designer” colors you by name — you can see them all by typing colors() at the command prompt.

To help you choose the right color from that list, here’s a handy page displaying samples of all 657 colors, and providing many useful hints and tips for working with colors in R. There’s also a PDF version suitable for printing (on a high-fidelity color printer) and pasting to your wall.

The page is quite old, but all the info is current up to R 2.7.2 and REvolution R 2.0 at least.

Earl F Glynn: Chart of R Colors


R has very powerful capabilities for choosing colors to use in statistical graphics. With the rgb function, you can choose any color from the spectrum by choosing its red, green, and blue components. Alternatively, you can choose from 657 “designer” colors you by name — you can see them all by typing colors() at the command prompt.

To help you choose the right color from that list, here’s a handy page displaying samples of all 657 colors, and providing many useful hints and tips for working with colors in R. There’s also a PDF version suitable for printing (on a high-fidelity color printer) and pasting to your wall.

The page is quite old, but all the info is current up to R 2.7.2 and REvolution R 2.0 at least.

Earl F Glynn: Chart of R Colors

You may be interested

How SAP Hana is Driving Big Data Startups
Big Data
298 shares3,142 views
Big Data
298 shares3,142 views

How SAP Hana is Driving Big Data Startups

Ryan Kh - July 20, 2017

The first version of SAP Hana was released in 2010, before Hadoop and other big data extraction tools were introduced.…

Data Erasing Software vs Physical Destruction: Sustainable Way of Data Deletion
Data Management
125 views
Data Management
125 views

Data Erasing Software vs Physical Destruction: Sustainable Way of Data Deletion

Manish Bhickta - July 20, 2017

Physical Data destruction techniques are efficient enough to destroy data, but they can never be considered eco-friendly. On the other…

10 Simple Rules for Creating a Good Data Management Plan
Data Management
69 shares727 views
Data Management
69 shares727 views

10 Simple Rules for Creating a Good Data Management Plan

GloriaKopp - July 20, 2017

Part of business planning is arranging how data will be used in the development of a project. This is why…