gg_text_size: A function to change the font size of the title, x-axis,...

Description Usage Arguments Value

Description

A function to change the font size of the title, x-axis, y-axis, among other aspects. Usually these all need to be adjusted for presentations. The only merit to using this function over ggplot is that this function organizes these similarly themed elements together, making them easier to remember. It also saves a little typing.

Usage

1
2
3
gg_text_size(p, main_title = 1, axis.title.x = 1, axis.title.y = 1,
  axis.text.x = 1, axis.text.y = 1, strip.text = NULL,
  legend.title = NULL, legend.text = NULL)

Arguments

p

ggplot object

main_title

changes title size through axis.title

axis.title.x

changes relative size through axis.title.x

axis.title.y

changes relative size through axis.title.y

axis.text.x

changes relative size through axis.text.x. Remember this function changes the size of text on the x-axis not the main axis title (usually numbers at each tick mark).

axis.text.y

changes relative size through axis.text.y.

strip.text

changes relative size through strip.text

legend.title

changes relative size through legend.title

legend.text

changes relative size through legend.text

Value

ggplot object


daniel-conn17/ConnUtilities documentation built on May 7, 2019, 3:09 p.m.