Color Palettes for Publication (discrete)

Share:

Description

Color palettes for publication-quality graphs. See details.

Usage

1
pub_pal(palette = "pub12")

Arguments

palette

the palette name, a character string.

Details

The following palettes are available:

  • "scipo"A 12-color colorblind discrete palette.

  • "gray9"5-tons of gray.

  • "carnival"A 5-color palette inspired in the Brazilian samba schools.

  • "tableau20"Based on software Tableau

  • "tableau10"Based on software Tableau

  • "tableau10light"Based on software Tableau

  • "tableau10medium"Based on software Tableau

  • "fte"fivethirtyeight.com color scales

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
library(scales)
library(ggplot2)

show_col(pub_pal("scipo")(12))
show_col(pub_pal("gray9")(9), labels = FALSE)
show_col(pub_pal("carnival")(4))
show_col(pub_pal("gdocs")(18))
show_col(pub_pal("manyeyes")(20))
show_col(pub_pal("tableau10")(10))
show_col(pub_pal("tableau10medium")(10))
show_col(pub_pal("tableau10light")(10))
show_col(pub_pal("cyclic")(20))
show_col(pub_pal("bivariate1")(9))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.