themes: Fishpals ggplot2 themes

theme_reportR Documentation

Fishpals ggplot2 themes

Description

lightweight ggplot2 themes for Cramer Fish Sciences and fish lovers alike

Usage

theme_report(
  inner_border = TRUE,
  outer_border = TRUE,
  outer_border_color = "gray40",
  inner_border_color = "gray25",
  base_size = 11,
  base_family = "Helvetica"
)

theme_pres(transparent = TRUE, base_size = 14, base_family = "Helvetica")

theme_pub(transparent = TRUE, base_size = 10.5, base_family = "Helvetica")

Arguments

inner_border

Logical controlling the border around the inner panel.

outer_border

Logical controlling the border around the plot object.

outer_border_color

Accepts a character string for the color of the outer plot border

inner_border_color

Accepts a character string for the color of the inner panel border

base_size

the default font size for the plot

base_family

Accepts a character string for the name of the font family to be used on the plot - only specify fonts which are installed on your system.

transparent

Logical controlling whether the panel and plot background of the plot should be transparent when saved to a png

Details

theme_report

good template theme for reports. Default inner panel border and light gridlines

theme_pres

intended for use in presentations. Larger default fonts, no gridlines, clean background suited for transparency options

theme_pub

good baseline template for publications. Smaller default fonts, theme suited for black and white.

Examples

library(ggplot2)
ggplot(mpg) +
 geom_point(aes(x = displ, y = hwy)) +
 theme_pres()
ggplot(mpg) +
 geom_point(aes(x = displ, y = hwy)) +
 theme_report()
ggplot(mpg) +
 geom_point(aes(x = displ, y = hwy)) +
 theme_pub()

fishsciences/fishpals documentation built on July 11, 2022, 12:32 a.m.