Plot 2

R code and sample plot for Plot 2.