baseFont: Function baseFont

Description Usage Arguments Details Value Author(s) Examples

View source: R/ThemePack.R

Description

Sets just the font size and optionally font family without changing other graphic attributes. Notably, the ggplot theme_grey and theme-bw can be used to change base_size but annoyingly reset my custom legend locations. So apply baseFont last and use it to change just the font sizes without otherwise altering you plot theme.

Usage

1
baseFont(base_size = 12, base_family = "")

Arguments

base_size

Size for the basefont in points (Default = 12)

base_family

Set the font family

Details

Optionally, set the font family as well. But from what I can tell, on Windows, you can have any font you want as long as it's Helvetica. see: https://github.com/wch/extrafont regarding attempting to use other font families.

Value

A ggplot theme that can be added to a plot object

Author(s)

John Thompson, john.thompson@bms.com

Examples

1
Myggplot <- myggplot + baseFont(18)

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