Description Usage Arguments Examples
Returns a function for interpolating a DGI color palette.
1 |
palette |
Character name of palette: "main" (default), "cool", "grey", "mixed", "teal white", "teal black", "teal grey", "blue white", "blue black", "blue grey", "sea green white", "sea green black", "sea green grey", "complementary", "split-complementary", "triadic", "tetradic", or "qualitative". |
reverse |
Boolean to reverse palette order, default FALSE. |
... |
Arguments passed on to
|
1 2 3 4 5 6 7 8 9 10 11 12 | library(scales)
show_col(dgi_pal()(3))
show_col(dgi_pal("official")(6))
show_col(dgi_pal(palette = "blue black")(4))
show_col(dgi_pal(palette = "teal light grey white")(3))
show_col(dgi_pal(palette = "teal white")(6))
show_col(dgi_pal(palette = "sea green black")(9))
show_col(dgi_pal(palette = "complementary")(2))
show_col(dgi_pal(palette = "split-complementary")(3))
show_col(dgi_pal(palette = "triadic")(3))
show_col(dgi_pal(palette = "tetradic")(4))
show_col(dgi_pal(palette = "qualitative")(5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.