Skip to contents

This function allows you to add the pru theme to your ggplot graphics.

Usage

theme_pru()

Examples

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()