cbColors: Palette of colorblind colours

Description Usage Format Source Examples

Description

Palette of 8 colours that are unambiguous both to colorblinds and non-colorblinds

Usage

1

Format

A named character vector of 8 colours in "#FFFFFF" format

Source

http://jfly.iam.u-tokyo.ac.jp/color/#pallet

Examples

1
2
3
4
5
6
7
8
9
# Bar plot with default colours:
barplot(rep(1,10),col=1:10, yaxt="n")

# Set the palette to cbColors
palette(cbColors)
barplot(rep(1,10),col=1:10, yaxt="n")

# Reset the default palette
palette("default")

mikemeredith/MMmisc documentation built on Nov. 8, 2019, 11:34 p.m.