tableau_gradient_pal | R Documentation |
Gradient color palettes using the diverging and sequential continous color palettes in Tableau. See \funclinktableau_color_pal for discrete color palettes.
tableau_gradient_pal(palette = "Blue", type = "ordered-sequential")
tableau_seq_gradient_pal(palette = "Blue", ...)
tableau_div_gradient_pal(palette = "Orange-Blue Diverging", ...)
palette |
Palette name.
|
type |
Palette type, either |
... |
Arguments passed to |
Other colour tableau:
scale_colour_gradient2_tableau()
,
scale_colour_gradient_tableau()
,
scale_colour_tableau()
,
tableau_color_pal()
library("scales")
x <- seq(0, 1, length = 25)
r <- sqrt(outer(x ^ 2, x ^ 2, "+"))
palettes <-
ggthemes_data[["tableau"]][["color-palettes"]][["ordered-sequential"]]
for (palname in names(palettes)) {
col <- tableau_seq_gradient_pal(palname)(seq(0, 1, length = 12))
image(r, col = col)
title(main = palname)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.