td_pal | R Documentation |
Returns a function for a discrete TD color palette, or for interpolating a
continuous one via grDevices::colorRampPalette()
.
td_pal(palette = "pastel6", type = "discrete", reverse = FALSE)
palette |
Character name of palette:
|
type |
One of "discrete" (default) or "continuous". |
reverse |
Logical to reverse palette order. |
library(scales) show_col(td_pal()()) show_col(td_pal("pastel6")(6)) show_col(td_pal("pastel6", reverse = TRUE)(3)) show_col(td_pal("div5")(5)) show_col(td_pal("div5", type = "continuous")(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.