Learn R Programming

SciencesPo (version 1.3.9)

pub_color_pal: Color Palettes for Publication (discrete)

Description

Color palettes for publication-quality graphs. See details.

Usage

pub_color_pal(palette = "pub12")

Arguments

palette
Palette name.

Details

The following palettes are available:
  • "pub12"
{Default colors of theme_pub} "tableau20"{Based on software http://www.tableausoftware.com/{Tableau}} "tableau10"{Based on software http://www.tableausoftware.com/{Tableau}} "colorblind"{Based on software http://www.tableausoftware.com/{Tableau}} "tableau10light"{Based on software http://www.tableausoftware.com/{Tableau}}

Examples

Run this code
library(scales)
show_col(pub_color_pal("pub12")(12))
show_col(pub_color_pal("tableau20")(20))
show_col(pub_color_pal("tableau10")(10))
show_col(pub_color_pal("colorblind")(10))
show_col(pub_color_pal("tableau10light")(10))

Run the code above in your browser using DataLab