charite
July 1, 2026 · View on GitHub
A minimal R package with a Charité-styled ggplot2 theme, visual
identity colour palettes, and
publication-ready figure export for manuscripts and slides.
Installation
You can install the development version of charite from
GitHub with:
# install.packages("devtools")
devtools::install_github("johannesjuliusm/charite")
To install the package on a machine with proxies, e.g., the standard Windows PC in the Charité network, find more detailed installation instructions in the installation vignette.
Examples
Visualize your data with theme_charite() to match the corporate style.
Preview the available colour palettes.
Workflow
# create your ggplot2 figure
p <- ggplot(data, aes(x = x, y = y)) +
geom_point(size = 3, color = charite_colors$HIMBEER) # use any of the Charité colors
# format the plot style
p <- p + theme_charite()
# alternatively, customize the plot style further
# for example by specifying a font
p <- p + theme_charite(font = "Charité Text Office")
# easily save your plot in a format optimized for slides and publications
nice_save("myfigure.png", p, layout = "slides")
Available Functions
theme_charite()– A custom ggplot2 themecharite_colors– Named list of hex codes of the Charité visual identity colourscharite_palettes– Named list of colour palettes derived from the Charité visual identity colour schemepreview_charite_palettes()– Shows the available colour palettes as colour swatchesnice_save()– ggsave wrapper with defaults ideal for high-res figures for publicationscale_color_charite()– ggplot2 colour scale using palettes fromcharite_palettesscale_fill_charite()– ggplot2 fill scale using palettes fromcharite_palettesexample_plot()– Generates a demo plotmake_charite_palette()– Internal function to interpolate or reverse colour palettesvirchow()– Surprise console ASCII art. Use for funcurves– Included dataset with time series curves for demo plot
Author
Developed by Johannes Julius Mohn
Max Planck School of
Cognition
& Charité – Universitätsmedizin
Berlin
Report bugs here.
Get in touch via johannes.j.mohn@maxplanckschools.de
How to Acknowledge
If you use this package in your work or publication, please acknowledge
the author.
Example: “The figures were generated using a custom theme from the
charite R package by Johannes Julius Mohn
(https://github.com/johannesjuliusm/charite).”