theme_ifr: Apply IFR theme to ggplot2 object

View source: R/theme_ifr.R

theme_ifrR Documentation

Apply IFR theme to ggplot2 object

Description

This function is added to a ggplot object to apply a custom IFR style.

Usage

theme_ifr(base_size = 16)

Arguments

base_size

Adjust the base size of plot text.

Details

This custom theme adjusts the standard ggplot theme to create report-ready plots. Font sizing is appropriate for a plot approximately 6" square, or similar. For larger or smaller plots, use base_size to adjust the text size as necessary to create aesthetic plots with readable text. All theme adjustments can be over-ridden with a subsequent theme() call.

Examples

ggplot(mtcars, aes(mpg, disp)) +
  geom_point() +
  theme_ifr()

InStreamFisheries/IFRthemes documentation built on July 6, 2023, 3:24 p.m.