add code to generate each plot