Four R scripts and corresponding plots.