R-Code for Plots and the resulting files