Visualizing Simulation Results

Several scripts for visualizing the output of hitchhiking are included with the source code. These scripts run under the statistics package R. The example graphs all correspond to figures in the paper for which we developed hitchhiking []:
  1. heterozygosity.r: reduction in heterozygosity depending on the recombination rate and the selection strength (Figure 2);
  2. time1.r: runtime ration depending on $ \alpha$ (Figure 3a);
  3. time2.r: runtime ration depending on n (Figure 3b);
  4. smallb.r: events in the wild-type background depending on $ \rho$ (Figure 4a);
  5. smallb2.r: events in the wild-type background depending on $ \alpha$ (Figure 4b);
  6. appErr1.r and appErrEx1.r: approximation error for fixed $ \rho$/$ \alpha$ (Figures 5a and 6a);
  7. appErr2.r: approximation error for various $ \rho$/$ \alpha$ (Figures 5b and 6b);
  8. tajima.r: distribution of Tajima's D (Figure 7a);
  9. likelihood.r: log-likelihood curve for the position of the selected site (Figure 7b).
All of these scripts call routines contained in hitchhiking.r.