Description Usage Arguments Value
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.
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)
|
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 |
ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.