knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" ) library(ggplot2) library(hare)
This package stores my custom themes and functions for personal use. Currently the only function in this package is theme_james
, a slightly more minimal version of theme_minimal
.
You can install hare
like so:
devtools::install_github("jamesphare/hare")
Load the library:
library(hare)
theme_james()
may be added to a GGPlot object or set generally using theme_set()
.
theme_set(theme_james()) ggplot(mpg, aes(displ, hwy, colour = class)) + geom_point() + labs(title = "Title", subtitle = "Subtitle", caption = "Source: GGPlot2")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.