Some small changes made to plot4 after reading: https://class.coursera.org/exdata-002/forum/thread?thread_id=46