ectrlplot
September 16, 2023 ยท View on GitHub
Overview
The ectrlplot package provides helpful functions for creating and
exporting graphics made in ggplot2 in the style used by the PRU team.
It is inspired by BBC bbplot package.
Installation
You can install the development version of ectrlplot from
GitHub with:
# install.packages('devtools')
devtools::install_github("euctrl-pru/ectrlplot")
or the CRAN version (when this package will land to CRAN):
install.packages("ectrlplot")
Usage
ectrlplot can be used to (example numbers refer to the ones in the
vignette):
- Add the PRU theme (Example 1.1).
- Use the PRU colour palette (Example 1.2)
- Add logo and source (Example 1.3).