ggtheme: Shortcut for ggplot theme

theme_wtlR Documentation

Shortcut for ggplot theme

Description

theme_wtl() is a slightly modified ggplot2::theme_bw.

erase() is a shortcut for theme(... = element_blank()).

axis_line() sets L-shaped axes.

Usage

theme_wtl(
  base_size = 12,
  base_family = "",
  base_line_size = base_size/22,
  base_rect_size = base_size/22
)

erase(..., .names = NULL)

axis_line(
  colour = NULL,
  linewidth = NULL,
  linetype = NULL,
  lineend = NULL,
  color = NULL,
  arrow = NULL,
  inherit.blank = FALSE
)

Arguments

base_size

base font size, given in pts.

base_family

base font family

base_line_size

base size for line elements

base_rect_size

base size for rect elements

...

elements to be blank

.names

string vector of element names

colour, color

Line/border colour. Color is an alias for colour.

linewidth

Line/border size in mm.

linetype

Line type. An integer (0:8), a name (blank, solid, dashed, dotted, dotdash, longdash, twodash), or a string with an even number (up to eight) of hexadecimal digits which give the lengths in consecutive positions in the string.

lineend

Line end Line end style (round, butt, square)

arrow

Arrow specification, as created by grid::arrow()

inherit.blank

Should this element inherit the existence of an element_blank among its parents? If TRUE the existence of a blank element among its parents will cause this element to be blank as well. If FALSE any blank parent element will be ignored when calculating final element state.


heavywatal/rwtl documentation built on April 2, 2024, 6:08 p.m.