baseTheme: Function baseTheme

Description Usage Arguments Value Author(s) Examples

View source: R/ThemePack.R

Description

A basic theme for individual plots that only sets relative font sizes for common graphic elements. Apply baseTheme as your last layer. In particular, theme_bw, theme_grey, will undo some of the changes set by baseTheme. After applying baseTheme, you can use baseFont to adjust font sizes for different output purposes (e.g. larger for PPT, smaller for knitr).

Usage

1
baseTheme(base_size = 18, base_family = "", scale_legend = TRUE)

Arguments

base_size

Size for the basefont in points (Default = 18)

base_family

Set the font family

scale_legend

Scales Legend.Text to 10/base_size lines (Default=TRUE)

Value

A ggplot theme that can be added to a plot object

Author(s)

John Thompson, john.thompson@bms.com

Examples

1
2
Myggplot = myggplot + baseTheme(12)  #start with a 12pt font theme
Myggplot = myggplot + baseFont(24)  #change plot to 24pt base.

jrthompson54/DGE.Tools2 documentation built on May 12, 2021, 8:47 p.m.