MOESM4 of Modeling future wildlife habitat suitability: serious climate change impacts on the potential distribution of the Rock Ptarmigan Lagopus muta japonica in Japanâs northern Alps
Additional file 4: Appendix S2. The code for developing a generalized additive model (GAM) of sub-model A in R. Abbreviations in the code are as follows: data.csv in line 1, dataset which include response variable and explanation variables; RpPA in line 3, presence and absence data of territories of the rock ptarmigan; AfR in line 3, area fraction of alpine fellfield communities; SgR in line 3, area fraction of snowbed grassland communities; DistR in line 3, distance from the ridge; PpR in line 3, area fraction of Pinus pumila communities; STUDY_TIME in line 3, the number of surveys.