Code for Kings

kings %>%
mutate(duration = Reign_end_year - Reign_begin_year,
midyear= Reign_end_year - duration/2) %>%
ggplot(aes(x = midyear, y = duration))+
geom_smooth()+
geom_point()+
geom_line()

other

If you want the .cvs file of our groups list of danish monarchs, you would have to contact someone from group 27.