My name is Richard. I’m a PhD social scientist using computational and quantitative methods to understand human behavior. Okay, that’s a bit vague. I focus on organizational behavior, collective action, and how individuals and groups respond to policies. My content area is educational policy. My dissertation analyzed how and why people take collective action to oppose changes to state education policies.
For visualizing survey data. There are some packages out there that do this, but I like to exercise more control over the various {ggplot2}
parameters. So I prefer to implement my own version, rather than go with the pre-packaged variety. It’s simple to execute with a likert scale that has an even number of categories. Trickier when there’s an odd number and the middle catgory must be split between the “negative” and “positive” ends of the graph.
A {ggplot2}
theme extension
I have recently gotten into tweaking {ggplot2}
theme parameters and creating custom themes. So at the beginning of my R scripts, I add theme_set(...)
with a bunch of arguments defining the theme. This involves a lot of going back and forth from old scripts to new ones. So I decided to create a small package to simplify my life. It’s a work in progress. Feel free to use it if you like. NOTE: This requires that you download the lovely Raleway font.
remotes::install_github("ramorel/ggminthemes")
Here are some examples:
theme_rale
- Download the Raleway font.
theme_metal
- Download the Olde English and Noto fonts.
Visualization and modeling