plotting homework data, pngs and r files