theme_pl {plutor}R Documentation

a new extensible theme

Description

a new extensible theme

Usage

theme_pl(
  base_size = 10,
  base_line_size = lpt(base_size/10),
  base_rect_size = lpt(1),
  size_scales = c(5, 6, 7),
  margin_factor = 0.25,
  plot_margin_factor = 0.5,
  legend_spacing_factor = 1.2,
  font_family = "",
  ...
)

Arguments

base_size

base size of fonts and margins

base_line_size

base linewidth

base_rect_size

base linewidth of the rectangles

size_scales

a vector of element size scales, namely:

  1. base size, used by legend text, axis text, caption

  2. used by legend title, axis title, strip text (facet title), subtitle

  3. used by title, tag

margin_factor

factor to adjust the element margins according to size_scales

plot_margin_factor

factor to adjust the plot margins according to size_scales[3]

legend_spacing_factor

factor to adjust the space of legend items according to size_scales[2]

font_family

font family

...

arguments from ggplot2::theme()

Value

theme object of ggplot

Examples

theme_pl()

[Package plutor version 0.1.0 Index]