upload plots and R code