sanzo.duo {sanzo}R Documentation

Generate two-colored palettes

Description

Generate two-colored palettes.

Usage

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

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


[Package sanzo version 0.1.0 Index]