common_functions.R provides different general functions used by the other R scripts. gen_data_fig2right.R generates the data needed to plot the right panel of figure 2. plot_fig2.R generates Fig. 2 as it appears in the text. plot_fig3.R and plot_fig5.R generate Fig. 3 and 5, respectively. Circles and arrows have been added using Inkscape. Put all figures in the same folder, then invoke them from the R console typing, for instance > source("plot_fig3.R") In order to reproduce Fig. 2 you should run first gen_data_fig2right.R (which generates a file results_pggds.RData) and then plot_fig2.R (which reads the results from the .RData file). The scripts produce pdf files.