Updating with R plotted graph