theme_pru | R Documentation |
This function allows you to add the pru theme to your ggplot graphics.
theme_pru()
library(ggplot2)
p1 <- ggplot(mpg, aes(displ, hwy)) +
geom_point() +
labs(title = 'Scatterplot example in ggplot2',
subtitle = 'A plot that is only useful for demonstration purposes')
p1 + theme_pru()
p2 <- ggplot(mpg[1:108,], aes(class)) +
geom_bar(aes(fill = manufacturer)) +
labs(title = 'Barplot example in ggplot2',
subtitle = 'A plot that is only useful for demonstration purposes')
p2 + theme_pru()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.