Code for all four plots, including the plots themselves