knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-" )
RCC themes, scales and geoms for ggplot2.
The longterm goal is to provide ggplot2 themes, scales and geoms that adhere to the graphic rules at Regional Cancer Centers (RCC) in Sweden. Currently, RCC scales are implemented.
if (!requireNamespace("remotes")) install.packages("remotes") remotes::install_bitbucket("cancercentrum/rccthemes") # remotes::install_bitbucket("cancercentrum/rccthemes", build_vignettes = TRUE) # also vignette
library(ggplot2) library(rccthemes) theme_set(ggplot2::theme_minimal()) scale_colour_discrete <- scale_colour_rcc scale_fill_discrete <- scale_fill_rcc ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.