completed R scripts and PNGs

Coursera assignment