DH Developer Douglas Duhaime will lead an informal, two-part workshop on creating distribution plots in R to visualize word frequencies. In Part 1, participants will learn how to create a plot based on a single text file. In Part 2, participants will incorporate facet wrapping into the code produced during Part 1 in order to plot “small multiples” (this is what you would do if you had more than one text file you were working with). To structure the workshop, we will be referring to Chapter 4 of Matthew Jockers’s Text Analysis with R for Students of Literature. For Yale affiliates, the book is available electronically via Springer Link. A print copy is also available for reading in the DHLab.
All are welcome; no programming experience is required! Participants should bring a laptop with them to the workshop.
Prior to the workshops, participants should download R and <a href’http://www.rstudio.com/’ target=’_blank’>RStudio</a>. Please also install the package “ggplot2” in RStudio. Sample text files will be provided, but participants are encouraged to work with their own data during the week between the two workshops.
To install the ggplot2 package:
Email firstname.lastname@example.org with any questions.
Instructor: Douglas Duhaime (DHLab)
Barnabae Epistula, sample text file from Workshop Part 1
GitHub page with code from both workshops