plot R-scripts and plot image files