a blog
by John D. Muccigrosso
I’m teaching Roman history this spring after a bit of time away from it. I’m also creating some charts to demonstrate some of the things I usually just talk about. I figured I’d share them. As usual they’ll be in their own repository on my GitHub.
I’m using R to do the charting and I’ll include the code I used to make them in the repo. Lately I’ve been using ggplot, which I find powerful, but finicky, so that’s taking most of my time. I’m doing the charts in four different color schemes: two black and white (with the bars in each color), one grayscale, and the fourth in color, using Viridis, a scheme that should be readable by those with colorblindness.
I’m also trying something new by using pandoc to create an ePub of the charts with some explanatory text and an appendix with the code and the data to the extent practicable.
So far I’ve done two histograms:
I’ve played around with the histogram bin sizes, settling on something between 20 and 50 years. Larger bins obscured some of the trends and smaller didn’t provide enough additional information to justify the added detail (at least for my purposes). Since the bins are fairly big, they combat the small size of some of the annual probabilities. If you look in the repo, you’ll see what I’ve done for each chart.
I’m putting these out under a CC-BY license, so they’re free for teaching and other non-profit uses, but not for selling. If you are interested in variations on these (e.g., different colors, or fonts, or bin sizes) and aren’t up to playing with the R code, just let me know. If you want to use them in some for-profit endeavor, likewise get in touch. Ideas for future charts are most welcome.