plotX.R producing plotX.png output as per assignment