ggpres | R Documentation |
Change the size of text on a ggplot
so that a plot designed to look good in print is readable when included in a slide in a presentation (or vice verse)
ggpres(g, title_size = 24, text_size = 18)
g |
A |
title_size |
The font size for the title, legend title and axes titles |
text_size |
The font size for for the axis lables, legend text and facet text |
A ggplot
graph
Ella Kaye
library(ggplot2) g <- ggplot(mpg, aes(displ, hwy)) + geom_point() + facet_wrap(~class, scales = "free") + ggtitle("A faceted plot") g2 <- ggpres(g) g2 + geom_point(size = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.