plot1.R

this file can just be sourced, for e.g, source("plot1.R") and after this you can find the plot1.png in your working directory.