sanzo.quad {sanzo} | R Documentation |
Generate four-colored palettes
Description
Generate four-colored palettes.
Usage
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
# 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.
[Package sanzo version 0.1.0 Index]