sanzo.duo {sanzo} | R Documentation |
Generate two-colored palettes.
sanzo.duo(palette_name)
palette_name |
The short ID for the palette, e.g. "c006". For full list of duo IDs, use sanzo.info2(). |
A vector of hexademicals of length 2.
# 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.