change -R option for plotting scripts