theme_pk: Custom ggplot2 theme PK style

View source: R/theme_pk.r

theme_pkR Documentation

Custom ggplot2 theme PK style

Description

Custom ggplot2 theme PK style

Usage

theme_pk(
  base_size = 10,
  base_family = "",
  base_line_size = base_size/22,
  base_rect_size = base_size/22,
  alwd = 0.5,
  grid = F,
  yrot = F,
  strip = "light",
  double_border = F
)

Arguments

base_size

base point size

base_family

base font family

base_line_size

base line size

base_rect_size

base rect size

alwd

line width used for axes, ticks and panel border

grid

draw no (0), only major ((1)) or major and minor grid lines (2)

yrot

rotate y axis tick labelsl 90 degrees (logical)

strip

Use gray facet strip with white text ("dark") or transparent strip with black text ("light")

double_border

Use double line width on panel border (logical). This is necessary in order to get equal line width for the ticks and border when exporting to png/pdf using ggsave and the (default) coordinate option clip='on'.

Value

ggplot2 theme opbject


kraaijenbrink/pkrf documentation built on July 4, 2023, 10:16 p.m.