Building ggplot2 colour palettes, the UoEColouR package case study
ggplot2 is a system for declaratively creating graphics, based on The Grammar of Graphics. You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.
This short tutorial by Dr Jill Mackay covers:
- Step One: What’s a ggplot2 palette anyway?
- Step Two: Colour Selection
- Step Three: Creating your Package
- Step Four: Enjoy your new colours!
Go to: Building ggplot2 colour palettes, the UoEColouR package case study
Dr Jill Mackay, Senior Lecturer (Veterinary Medical Education) at the Royal (Dick) School of Veterinary Studies, is a proponent of open science, and particularly exploring how education research can adopt open science practices. She has created and published multiple OER, including the open textbook R@R(D)SVS designed to help staff and students get to grips with with R programming.
This ggplot2 tutorial created by Dr Jill MacKay, for The University of Edinburgh, is available under a Creative Commons Attribution licence.