— ggplot2: Density Plots and Histograms — In this post, I’m going to go through how to make plots of distributions (either density plots or histograms) in ggplot2. I’m going to draw upon examples of Fisherian testing in the context of causal inference, but the examples should... Read more
I'm the Engineering Manager in the AI Training organization at Meta. I hold a PhD in Political Science and an AM in Statistics from Harvard University.
Blog
— ggplot2: Side-by-Side Plots — Here’s a quick example of plotting histograms next to one another in ggplot2. I wanted to plot the estimated propensity scores for treated and control units for the Lalonde non-experimental data. First, generate the estimate propensity scores using the fitted... Read more
— ggplot2: Factor Orderings — One of the occasionally annoying features of R and thus ggplot2 is dealing with factors. In this post, I’ll go through how to handle ordering of factors in ggplot2 and the manual assignment of colors to those categories. For this... Read more