Blogging Charts!

I like to make charts.

I often post them on Twitter (@bcshaffer). I thought I might start posting some of them on my website as a way for me to (a) learn to use R Markdown and (b) share some of my R code that creates these charts for others who are interested in learning.

Note: Both my R code and especially my nascent R Markdown skills are still rough. I’m sure much of it isn’t “best practice”. Far from it. It’s what I like to call ‘gets it done’ code. So learn what you can, and apologies for creating bad habits!

- Blake


I learned R primarily from Hadley Wickham and Garrett Grolemund’s book: R for Data Science. I highly recommend it. It assumes zero previous R knowledge, even guiding you through where to download the required software, and gets you up and running in no time.

For data visualization tips, I really like Claus Wilke’s online book: Fundamentals of Data Visualization (with code examples!).

Blake Shaffer
Blake Shaffer
Assistant Professor

My research interests include electricity markets, demand response, electric vehicles, and climate policy