adding R codes and plots
Merge remote-tracking branch 'origin/master'