theme_pk: Custom ggplot2 theme PK style

Description Usage Arguments Value

View source: R/theme_pk.r

Description

Custom ggplot2 theme PK style

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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 Nov. 14, 2020, 12:29 p.m.