sanzo.duo: Generate two-colored palettes

Description Usage Arguments Value Examples

View source: R/duos.R

Description

Generate two-colored palettes.

Usage

1
sanzo.duo(palette_name)

Arguments

palette_name

The short ID for the palette, e.g. "c006". For full list of duo IDs, use sanzo.info2().

Value

A vector of hexademicals of length 2.

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.duo("c229")

# Concatenate two duos for a custom quad.
c033 <- sanzo.duo("c033")
c095 <- sanzo.duo("c095")
custom_quad <- c(c033, c095)

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

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