My first ever R package!
Well this is pretty darn exciting. I made my first package and first custom theme! Check it out here!
You can install it as follows:
devtools::install_github("weiyangtham/econothemes")
Here’s a quick example:
library(ggplot2)
library(econothemes)
ggplot(mtcars, aes(mpg, wt)) +
geom_point() +
labs(x="Fuel efficiency (mpg)", y="Weight (tons)",
title="Seminal ggplot2 scatterplot example",
subtitle="A plot that is only useful for demonstration purposes",
caption="Same example as in hrbrthemes'") +
theme_nber()
I’ll do a more in-depth post about the process, complete with acknowledgements for all the people whose Github accounts I raided for code, but for now I just really wanted to share this.
Leave a Comment