Code and data from: Unravelling processes between phenotypic plasticity and population dynamics in migratory birds Liu, Jin, Lei, Weipan, Mo, Xunqiang, Hassell Chris, Zhang, Zhengwang, Coulson, Tim 1. NetLogo code for the individual-based model NetLogo code to construct the individual-based model with capital breeding tactic and income breeding tactic respectively, and to get the model outputs including: total number of individuals, daily population density at each habitat, individual time spent at each habitat, individual energy reserves when leaving each habitat and individual energy reserves at each time step. Different habitat scenarios and sensitivity analysis can be run by using the "behaviour space". The model scenarios, the decision rules, the order of events of the model are fully described in the paper. Code_IBM_CapitalBreeding.nlogo Code_IBM_IncomeBreeding.nlogo 2. Bird survey data The dataset comes from the long-term bird survey project on the Bohai Bay, China, run by Beijing Normal University (BNU) and Global Flyway Network (GFN). The data provided here is a subset of the full dataset, which includes bird surveys from 2016 to 2018. If you are interested in the full dataset, please contact Zhengwang Zhang (BNU). Location: Bohai Bay, 38°36-39°13'N and 117°11-118.22'E Survey range: see Figure S3 Time period of the surveys: 2004-2018 Key to variables: year: is the year of the survey month: is the month of the survey day: is the date of the survey julian: is the Julian date of the survey area: is the survey site, the location of the survey site can be found in Fig.S3 species: is the common English name of the species. The "uncurlew sp.", "unduck sp.", "untern sp." are species that cannot be identified as species level, they were all treated as unidentified species in our analyses. number: is the population size of the species at the survey site at the specific survey date effort: is the number of observers of the survey Survey_data_BNU.csv figure_S3_SurveyArea.tif