theme_HSRC: Create an HSRC ggplot theme

View source: R/theme_HSRC.R

theme_HSRCR Documentation

Create an HSRC ggplot theme

Description

theme_HSRC is a theme based on theme_minimal. No grid lines, only x and y axis. Horizontal y-axis label Dark grey rather than black for text elements

Usage

theme_HSRC(
  base_size = 18,
  base_family = "",
  base_line_size = base_size/170,
  base_rect_size = base_size/170
)

Arguments

base_size

base font size, given in pts.

base_family

base font family

base_line_size

base size for line elements

base_rect_size

base size for rect elements

Value

A plot with text (left) and logo (right)

Examples

library(ggplot2)
pl_1 <- ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point()
pl_1_no_legend <- ggplot(mpg, aes(displ, hwy, colour = class)) +
geom_point(show.legend = FALSE)

pl_1
pl_1 + theme_HSRC()
pl_1_no_legend
pl_1_no_legend + theme_HSRC()


IainMoppett/testpackage documentation built on Feb. 4, 2023, 11 p.m.