plotting R code with plotted images.