/exeteR

Primary LanguageR

exeteR

This repository contains code and examples for making graphs in ggplot using the University of Exeter colour scheme and plot. The intended use is for conference presentations and posters using the University of Exeter branding. This has been produced according to https://brand.exeter.ac.uk/colour/

Installation

Ensure that the following packages are installed: extrafont, tidyverse, ggplot2, showtext. Then, run

library(devtools)
source_url("https://raw.githubusercontent.com/hdg204/exeteR/main/ex_theme.R")

This will make the following items available:

  1. ex_theme, ex_green_theme, and ex_dark_theme, ggplot themes that set colour schemes and fonts for ggplots
  2. All official Exeter colours from https://brand.exeter.ac.uk/colour/, stored in hex codes in e.g. ex_dark_green
  3. Three palettes using combinations of the official colours: exeter_greens, exeter_palette, and exeter_full_palette.

Examples

Code for all of the below examples is available in ex_theme_examples.R.

Scatterplots showing the three themes

Density Plot and Line Plot using the exeter_greens palette

Bar graph with month on x axis

Faceted Forest Plot on dark theme