June 10, 2024
https://warwick-stats-resources.github.io/warwickbrand-talk
All text in blue is a link
An R package with colour palettes and a ggplot2 theme
A Quarto Revealjs extension for presentations
A GitHub template for creating course/workshop websites with Quarto
These resources exist
What they look like
A quick guide to getting started using them
Where to learn more (they are well-documented)
Top takeway
Please use them!
A detailed technical demonstration of their use
How to develop packages / write Quarto extensions
A guide to using Quarto
What is Quarto?
Also available in white and black.
An R package with colour palettes and a ggplot2 theme that are consistent with The University of Warwick’s branding, especially its colours and typography.
The palettes are built using the palettes package. The ggplot2 theme is heavily inspired by the work of Cara Thompson, particularly her talk on applying a unifying aesthetic to your plots.
scale_colour_palette_d()
scale_colour_palette_c()
scale_colour_palette_b()
scale_fill_palette_d()
scale_fill_palette_c()
scale_fill_palette_b()
theme_warwick()
theme_warwick()
An extension of ggplot2::theme_minimal()
, offering the following in addition:
element_textbox_simple()
from ggtext for the plot title and subtitle, to enable use of markdown and CSS styling, and text-wrapping if the title/subtitle is longggplot(penguins, aes(flipper_length_mm, body_mass_g, group = species)) +
geom_point(aes(colour = species, shape = species),
alpha = 0.8,
size = 2) +
scale_color_palette_d(warwick_palettes$primary) +
labs(title = "Penguin Size, Palmer Station LTER",
subtitle = "Flipper length and body mass for
**<span style = 'color:#3C1053;'>Adelie</span>**,
**<span style = 'color:#6DCDB8;'>Chinstrap</span>** and
**<span style = 'color:#CB333B;'>Gentoo</span>** Penguins.
This is based on data made available in the
**palmerpenguins** R package.",
caption = "Visualization: Ella Kaye, Data: Gorman, Williams & Fraser (2014) DOI: 10.1371/journal.pone.009008",
x = "flipper length (mm)",
y = "body mass (g)") +
theme_warwick() +
theme(legend.position = 'none')
Package website: warwick-stats-resources.github.io/warwickplots
Package repo: github.com/warwick-stats-resources/warwickplots
See also: all the documentation for the palettes package
This is a warwickpres!
The warwickpres starting point:
https://warwick-stats-resources.github.io/warwickpres
Let’s take a look…
Note
The workflow for using warwickpres in an RStudio project with git/GitHub/gh-pages is a bit fiddly, but well documented in the README.
Demo
index.qmd
) ready to fill in key course detailscreate_session()
The template:
warwick-stats-resources.github.io/warwickcourse
R package development workshop 2024:
warwick-stats-resources.github.io/r-packages-2024
Sign-up for the R package development workshop!
warwick.ac.uk/ellakaye/r-packages-2024
Deadline June 18th (Warwick members only)
create_session()
slides/session-name
, copying slides/00-template
content/session-name
, copying content/00-template
UPDATE-DIR-NAME
in content/session-name/index.qmd
with session-name
delete_session()
create_session()
ella.m.kaye@warwick.ac.uk
github.com/Warwick-Stats-Resources