rcb_colors: Shorthand names for selected colors from RColorBrewer

Description Usage Format Details Source Examples

Description

This dataset provides convenient access to selected ColorBrewer palettes: diverging brown-bluegreen (BrBG) with 8 levels; diverging purple-green (PRGn) with 8 levels; and sequential gray (Greys) with the middle four of 6 levels.

Usage

1

Format

A data frame with columns:

rcb_name

Character variable of names.

rcb_code

Character variable of hex color codes.

Details

The color names have the form "level_hue" with 4 saturation levels (dark, mid, light, pale) and 5 hues (Br, BG, PR, Gn, Gray or Grey).

Source

Cynthia Brewer (http://colorbrewer2.org) and RColorBrewer (https://cran.r-project.org/package=RColorBrewer).

Examples

1
2
3
rcb_colors
rcb("dark_Br")
rcb("light_Gn")

graphdr/graphclassmate documentation built on May 27, 2021, 4:41 a.m.