Description Usage Arguments Value Examples
Generate two-colored palettes.
1 | 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.
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.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.