knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(ProvidenceThemes) library(ggplot2)
# make fake data for plots ---- points <- data.frame(x = 1:10, y = 1:10) g_points <- ggplot(points, aes(x, y, col = factor(x))) + geom_point(size = 5)
ADD SOMETHING HERE!
To understand this theme, first consider this basic ggplot.
g_points
Here is what my theme looks like.
g_points + labs(title = "My fancy plot") + theme_providence()
It also pairs nicely with this palette.
g_points + scale_color_discrete_providence(palette = "providence", extend = TRUE) + labs(title = "My fancy plot") + theme_providence()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.