ggplot_converter: ggplot2 converter function

Description Usage Arguments Details Author(s)

Description

This function will take a ggplot object p and convert it into a plot that is suitable for a journal article.

Usage

1
2
3
4
ggplot_converter(p, want.bw = TRUE, axis.text.size = 15,
  axis.title.size = 15, plot.facet = FALSE, strip.text.size = 15,
  main.title = FALSE, plot.title.size = 15, have.legend = FALSE,
  legend.text.size = 10, legend.title.size = 10)

Arguments

p

A ggplot2 object

want.bw

Change background to white

axis.text.size

Axis text size

axis.title.size

Axis title size

plot.facet

Plot figures across a factor

main.title

logical. Main title

plot.title.size

Main title size

have.legend

logical. Legend present in the figure

legend.text.size

Legend text size

legend.title.size

Legend title size

Details

This function is based on some code I got from Brian Weaver.

Author(s)

Brian Weaver, Isaac Michaud


isaacmichaud/IMisc documentation built on July 1, 2019, 10:22 a.m.