Description Usage Arguments Details Author(s)
This function will take a ggplot object p and convert it into a plot that is suitable for a journal article.
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)
|
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 |
This function is based on some code I got from Brian Weaver.
Brian Weaver, Isaac Michaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.