add plot stuff in R.txt