cud {oneclust}R Documentation

Masataka Okabe and Kei Ito's Color Universal Design palette

Description

Masataka Okabe and Kei Ito's Color Universal Design palette

Usage

cud(x, shift = TRUE, reverse = FALSE)

Arguments

x

Vector, color index.

shift

Start from the second color in the CUD palette?

reverse

Reverse the color order?

Value

A vector of color hex values.

Examples

barplot(rep(1, 7), col = cud(1:7))
barplot(rep(1, 8), col = cud(1:8, shift = FALSE))
barplot(rep(1, 8), col = cud(1:8, shift = FALSE, reverse = TRUE))

[Package oneclust version 0.3.0 Index]