library(tidyverse)
theme_set(theme_light())
stats_phd <- read_csv("https://raw.githubusercontent.com/qntkhvn/36-315-summer26/refs/heads/master/data/stats-phd.csv")
head(stats_phd)# A tibble: 6 × 5
broad_field major_field field year n_phds
<chr> <chr> <chr> <dbl> <dbl>
1 Life sciences Biological and biomedica… Biom… 2008 122
2 Mathematics and computer sciences Mathematics and statisti… Stat… 2008 303
3 Mathematics and computer sciences Mathematics and statisti… Math… 2008 140
4 Mathematics and computer sciences Mathematics and statisti… Math… 2008 63
5 Psychology and social sciences Other social sciences Stat… 2008 20
6 Education Education research Educ… 2008 66