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.

Installation

if (!requireNamespace("remotes"))
  install.packages("remotes")

remotes::install_bitbucket("cancercentrum/rccthemes")
# remotes::install_bitbucket("cancercentrum/rccthemes", build_vignettes = TRUE) # also vignette

Usage

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()