You can learn a lot about someone on Twitter. Not only through tweets, but also through whom one follows.
[Read More]
Introducing compareBars: Simplify comparative bar charts
In data visualization, less is often more, and the best advice is almost always “simplify simplify”. When viewing a chart, the viewer’s attention should be immediately drawn to something worth emphasizing: an outlier, a contrast, a pattern, etc. The less elements on the page the better.
[Read More]
Introducing kapow: an explosive but maybe irresponsible way to assign variables from objects
Assignment in R is a somewhat controversial thing, and there is only a loose consensus around best practices. The crux of the issue, I think, is readability vs. writability. Reading code can be a struggle; programmers want to reduce the amount of mental hurdles and friction on the way to...
[Read More]
Planning your UCSC Extension Program Schedule with Web Scraping and the tidyverse
Have you ever started a project unsure how to accomplish several of the required tasks? Perhaps you were optimistic you would figure it out eventually, or (more likely) that you would find someone on the internet who had already figured it out for you. Such was my hope when I...
[Read More]
Calculating New/Returning Students with Factors and dplyr
I have yet to learn the tidy evaluation paradigm. Typically, violating
DRY principles with a combination of hacks and brute force gets the job done. But a recent challenge at work took me perilously
to the edge.
[Read More]
Reproducing a Mike Bostock d3.js Specialty with ggplot2
Mike Bostock is the Pontifex Maximus of data visualization. As a d3.js novice, I spend hours each week poring over his creations over at Observable HQ, a brilliant new medium to share compelling data visualizations and quantitative analysis. And because, as they say, imitation is the highest form of flattery,...
[Read More]