Publications by Alex Albright
Exploring Fitbit Sleep Data
Intro I want to visualize two things using fitbit sleep data: how much I sleep when I sleep First, I want to open my Fitbit data. I download the zip file from the Fitbit website once my entire archive export was complete. I then rename that file as fitbitdata. Within that folder there is a user-site-export subfolder with all the raw data I coul...
29541 sym R (28984 sym/28 pcs) 3 img
I.C.E. and Ph.D.s
Alternative title + sign from the rally at the MA State House today: Melt the ICE intro This project is motivated by recent (Monday 7/6) ICE news here. The NSF puts out data on doctoral degree earners and their citizenship – the most recent data covers 2006-2016. See table 7-4 here. I use this data to show summary stats, and graphs related to ...
16925 sym R (11438 sym/24 pcs) 3 img
Time Series Graphs with BADA Data
Motivation: Back in May/June, I made some graphs for a Bay Area Disc Association (BADA) blog post to show how quickly and drastically COVID-19 impacted program registrations. I use updated data (through November) to illustrate a number of ways to visualize time series data. #As usual, call libraries. library(tidyverse); library(janitor);library(d...
19558 sym R (9888 sym/22 pcs) 4 img
Metaplots using metadata
Getting NBER metadata NBER folks recommend downloading this .tab file. You can also download NBER metadata as .txt files from here. (The issue with the .txt files is that they often are missing dates, which I want for a lot of plots.) I’ll use the tab file and then use the authors text file for when I get into author demographics. I fread direc...
24806 sym R (15606 sym/42 pcs) 7 img 2 tbl
The Decline of the Sexual SuperBowl Commercial
A friend recently mentioned to me that there were basically no sexual Super Bowl ads this year. In fact, I’ve heard people speculating for a while now that the eating-a-burger-in-a-bikini-style ads are on the decline. I then woke up to a the following news in Data is Plural: the good people at 538 watched 233 Super Bowl ads between 2000-2021(!!...
4633 sym R (1297 sym/3 pcs) 1 img
Job market visuals
Call packages and define ggplot theme. library(data.table);library(tidyverse);library(lubridate);library(viridis);library(ggthemes);library(patchwork) my_theme<-function(){ theme_clean()+theme(plot.background = element_blank())+ theme(text=element_text(family="Palatino"), legend.title = element_text(family="Palatino"), lege...
9593 sym R (5711 sym/15 pcs) 6 img