theme_pbs: A ggplot2 theme

Description Usage Arguments Examples

View source: R/ggtheme-pbs.R

Description

A simple theme for ggplot2 that loosely resembles nicely themed plots from base graphics.

Usage

1
2
3
4
5
6
theme_pbs(
  base_size = 11,
  base_family = "",
  text_col = "grey20",
  panel_border_col = "grey70"
)

Arguments

base_size

Base font size.

base_family

Base font family.

text_col

Color for text.

panel_border_col

Color for panel borders.

Examples

1
2
3
4
p <- ggplot2::ggplot(mtcars) +
  ggplot2::geom_point(ggplot2::aes(x = wt, y = mpg, colour = factor(gear))) +
  ggplot2::facet_wrap(~am)
p + theme_pbs()

sebpardo/rtails documentation built on Dec. 22, 2021, 11:17 p.m.