added R script and plot image to examples and updated readme