Create plot4.R

This script creates the output required for task 4 into a file called plot4.PNG.