Description Usage Arguments Value Examples
Generate four-colored palettes.
1 | sanzo.quad(palette_name)
|
palette_name |
The short ID for the palette, e.g. "c263". For full list of quad IDs, use sanzo.info4(). |
A vector of hexademicals of length 3.
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.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.