sanzo.quad: Generate four-colored palettes

Description Usage Arguments Value Examples

View source: R/quads.R

Description

Generate four-colored palettes.

Usage

1
sanzo.quad(palette_name)

Arguments

palette_name

The short ID for the palette, e.g. "c263". For full list of quad IDs, use sanzo.info4().

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.quad("c252")

# Concatenate two quads for a custom eight-colored palette.
c348 <- sanzo.quad("c348")
c341 <- sanzo.quad("c341")
custom_eight <- c(c348, c341)

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

# 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.