sanzo.trio: Generate three-colored palettes

Description Usage Arguments Value Examples

View source: R/trios.R

Description

Generate three-colored palettes.

Usage

1
sanzo.trio(palette_name)

Arguments

palette_name

The short ID for the palette, e.g. "c121". For full list of trio IDs, use sanzo.info3().

Value

A vector of hexademicals of length 3.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Assign palette to a name.
my_palette <- sanzo.trio("c223")

# Concatenate two trios for a custom six-colored palette.
c207 <- sanzo.trio("c207")
c226 <- sanzo.trio("c226")
custom_six <- c(c207, c226)

# Use with base R.
plot(iris$Sepal.Width,
     iris$Sepal.Length,
     col = sanzo.trio("c343"))

# For examples of use with ggplot2, see https://github.com/jmaasch/sanzo.

# For examples of use as a gradient, see https://github.com/jmaasch/sanzo.

sanzo documentation built on Jan. 12, 2020, 4:09 p.m.