add R scripts to plot and input file containing test for number of objects