Color Palettes


R offers a wide variety of color palettes that can greatly enhance the visual appeal and clarity of your graphics. These palettes are essential tools for customizing the look of your plots and ensuring effective data communication.

R Color Brewer palettes


Here are few examples of the many R Color Brewer palettes available and availables themes (package RColorBrewer).

The command display.brewer.all(colorblindFriendly = TRUE) allow to see only color blind friendly palettes. The colors of a given palette can be viewed using the commands display.brewer.pal(n = 8, name = 'Set2') and brewer.pal(n = 8, name = "Set2").

Some examples:

Wes Anderson palettes


Here are few examples of the many Wes Anderson palettes available and availables themes (package wesanderson).

Some examples:

Viridis palettes


Here are few examples of the Viridis palettes available (package viridis):

Color by hexadecimal code





Contact

This document is a work of the statistics team in the Biostatistics and Medical Information Department at Saint-Louis Hospital in Paris (SBIM).
Developed and updated by Noémie Bigot and Anouk Walter-Petrich
noemie.bigot@aphp.fr; anouk.walter-petrich@u-paris.fr

Based on The R Graph Gallery by Yan Holtz.

SBIM