Some themes impact the scales when using a colour or fill along a variable.
This vignette focusses on the different styles of colour scales.
The fill scales uses the same gradients.
To keep the vignette small, we only give examples with different colours.
We illustrate the other effects of the themes in vignette("colour", package = "INBOtheme")
, again to keep the size of the vignettes to a minimum.
Note that you need to use the appropriate scale provided by INBOtheme
in case of a gradient along a continuous variable.
library(knitr) opts_chunk$set( echo = TRUE, message = FALSE, warning = FALSE, dev = "png", dpi = ifelse(opts_knit$get("rmarkdown.pandoc.to") == "latex", 300, 72) )
library(ggplot2) library(INBOtheme)
theme_inbo()
base_size <- ifelse(opts_knit$get("rmarkdown.pandoc.to") == "latex", 7, 12) theme_set(theme_inbo(base_size = base_size)) rmd <- knit_expand("child/_colour_test_figures.Rmd", theme = "inbo") md <- knit(text = rmd, quiet = TRUE) cat(md)
theme_vlaanderen2015()
theme_set(theme_vlaanderen2015(base_size = base_size))
rmd <- knit_expand("child/_colour_test_figures.Rmd", theme = "vlaanderen") md <- knit(text = rmd, quiet = TRUE) cat(md)
theme_elsevier()
theme_set(theme_elsevier(base_size = base_size))
rmd <- knit_expand("child/_colour_test_figures.Rmd", theme = "elsevier") md <- knit(text = rmd, quiet = TRUE) cat(md)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.