knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
This package allows to query colors from a palette inspired from RWTH Aachen corporate design using R. The color palette contains 13 different colors, each in 5 different intensities (100%, 75%, 50%, 25% and 10%; see figure below).
The color palette makes no claim to completeness or correctness of the official RWTH Aachen corporate design.
# install the development version from GitHub # install.packages("remotes") remotes::install_github("christianholland/AachenColorPalette")
Query colors by combining color name in lower case (check figure below for color names) and color intensity. For colors with 100% intensity the color name alone is sufficient.
# load package library(AachenColorPalette) # show the color palette display_aachen_color() # query single or multiple colors aachen_color("blue") [1] "#00549F" aachen_color("green", "green75", "green50", "green25", "green10") [1] "#57AB27" "#8DC060" "#B8D698" "#DDEBCE" "#F2F7EC"
library(ggplot2) library(AachenColorPalette) ggplot(mtcars, aes(x = wt, y = mpg, color=factor(cyl))) + geom_point() + scale_color_manual(values = aachen_color("bordeaux", "green", "turquoise"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.