scale_color_sciensano_c | R Documentation |
See pal_sciensano_c
for details.
scale_color_sciensano_c( palette = c("red", "green", "red-yellow-green"), alpha = 1, reverse = FALSE, ... ) scale_colour_sciensano_c( palette = c("red", "green", "red-yellow-green"), alpha = 1, reverse = FALSE, ... ) scale_fill_sciensano_c( palette = c("red", "green", "red-yellow-green"), alpha = 1, reverse = FALSE, ... )
palette |
Palette type. There are 3 available options:
|
alpha |
Transparency level, a real number in (0, 1].
See |
reverse |
Logical. Should the order of the colors be reversed? |
... |
additional parameters for |
## Not run: library("ggplot2") library("reshape2") data("mtcars") cor <- abs(cor(mtcars)) cor_melt <- melt(cor) ggplot( cor_melt, aes(x = Var1, y = Var2, fill = value) ) + geom_tile(colour = "black", size = 0.3) + theme_bw() + scale_fill_sciensano_c("red-yellow-green") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.