This R program runs a stochastic simulation of the FLP in 100 populations for 500 generations and then plots results at generation 500 (fig. 4D). See Appendix A for the equations used in this program
File ListRcode.txt (MD5: 251ee8b60b55024dd4aabc0f4903aa6a) Description R code used to run nonlinear CAP analysis (adapted from Millar et al. 2005) and Gradient Forest (adapted from Pitcher et al., 201