Description Usage Arguments Value Examples
Generate three-colored palettes.
1 | sanzo.trio(palette_name)
|
palette_name |
The short ID for the palette, e.g. "c121". For full list of trio IDs, use sanzo.info3(). |
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.trio("c223")
# Concatenate two trios for a custom six-colored palette.
c207 <- sanzo.trio("c207")
c226 <- sanzo.trio("c226")
custom_six <- c(c207, c226)
# Use with base R.
plot(iris$Sepal.Width,
iris$Sepal.Length,
col = sanzo.trio("c343"))
# 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.