Supplement to the paper Queiroz et al. (2020, Biotropica, early view).
Ecological Synthesis Lab (SintECO).
Authors: Joel A. Queiroz, Ugo M. Diniz, Diego P. Vázquez, Zelma M. Quirino, Francisco A.R. Santos, Marco A.R. Mello, Isabel C. Machado.
E-mail: [email protected].
Published on October 2nd, 2020 (English version).
Run in R version 4.0.2 (2020-06-22) -- "Taking Off Again".
Disclaimer: You may freely use the software and data provided here for commercial or non-commercial purposes at your own risk. We assume no responsibility or liability for the use of this material, convey no license or title under any patent, copyright, or mask work right to the product. We reserve the right to make changes in the material without notification. We also make no representation or warranty that such application will be suitable for the specified use without further testing or modification. If this material helps you produce any academic work (paper, book, chapter, monograph, dissertation, report or similar), please acknowledge the authors and cite the source.
The data, scripts, and functions provided here aim at making or study fully reproducible. You will find code to reproduce both the analysis and the figures, as well as the main supplementary material. We have also added some bonus material related to data visualization.
-
data (folder)
a. morph_pla.xlsx -> morphometric data of plants.
b. morph_pol.xlsx - > morphometric data of pollinators.
c. network.txt -> the nocturnal pollination network composed of plants, bats, and hawkmoths.
d. plants.xlsx -> guild data of plants.
e. sampbat.xlsx -> capture data of bats.
f. samphawk.xlsx -> capture data of hawkmoths.
g. sampling_bats.xlsx -> sampling data of bats at the individual level.
h. sampling_hawkmoths.xlsx -> sampling data of hawkmoths at the individual level.
i. vertices.csv and edges.csv -> additional data to reproduce Figure 2 as it is presented in the paper. See "tutorial.pdf".
-
figures (folder)
a. centrality.tiff -> boxplots of centrality by pollinatiom syndrome.
b. compound.png -> matrix of the nocturnal pollination network.
c. morph.tiff -> boxplot comparing morphometric data between network modules.
d. network.tif -> graph of the nocturnal pollination network.
e. sampling.tiff -> rarefaction curves representing interaction sampling completeness.
-
results (folder)
a. dplants.csv -> scores of specialization (d') for the plants.
b. BCplants.csv -> scores of betweenness centrality for the plants.
c. NDplants.csv -> scores of normalized degree for the plants.
d. results_centrality.txt -> results of the GLMs comparing centraliy by pollination syndrome.
e. results_topology.txt -> results of the topological analyses.
-
analysis.R -> main script to run the analyses and plot the graphs. Best choice if you want not only to reproduce our analyses and figures, but also to aplly our solutions to your own data.
-
MyDiamond.R -> additional function to create the diamond shape used in "network.tif". Provided in the igraph manual.
-
PosteriorProb.R -> additional function to calculate restricted probabilities to be used in the compound topology analysis. See the original repo.
-
RestNullModel.R -> additional function to run the compound topology analysis. See the original repo.
-
tutorial.pdf -> knit version of the tutorial provided in "tutorial.Rmd". Best choice if are not familiar with R, and would like to just take a look at how our paper was cooked.
-
tutorial.Rmd -> a tutorial written in RMarkDown to help you reproduce the analyses and figures. Best choice if you just want to reproduce our results, but does not want to apply them to your own data.
-
Run the script "analysis.R" and follow the steps provided in it;
-
You can also run specific sections of the script to reproduce specific results, but beware of dependences between some sections.
-
The analyses based on null models can be quite resource-consuming. Check your computer's power and memory before setting the number of permutations. If you want to analyze your own data for real, consider that you will need at least 1,000 permutations. If you want only to explore your data, 10 permutations will do it.
-
If you have any questions, corrections, or suggestions, please feel free to open an issue or make a pull request.
-
Have fun!
The codes used in this repo have borrowed solutions from other repos developed by our lab:
We thank our colleagues, who helped us at different stages of this project. Special thanks go to Renata Muylaert, Pavel Dodonov, Gabriel Felix, and Rafael Pinheiro, who, together with us, developed the additional functions and scripts used here. Last, but not least, we thank the Stack Overflow Community, where we solve most of our coding dilemmas. This research was funded by the Pernambuco Research Foundation (FACEPE, APQ-1096-2.03/08) and the Brazilian Council for Scientific and Technological Development (CNPq, Universal 459485/2014-8). The Brazilian Coordination for the Improvement of Higher Education Personnel granted JAQ a sandwich scholarship to study in Instituto Argentino de Investigaciones de Zonas Aridas (IADIZA) (CAPES, 18529/12-7) and UMD a master’s scholarship (88882.347259/2019-01), Argentina. CNPq granted JAQ a Ph.D. scholarship (18529/12-7) and ICM a research grant (311021/2014-0). MARM was funded by the Alexander von Humboldt Foundation (AvH, 3.4-8151/15037 and 3.2-BRA/1134644), CNPq (302700/2016-1 and 304498/2019-0), Dean of Research of the University of São Paulo (PRP-USP, 18.1.660.41.7), and São Paulo Research Foundation (FAPESP, 2018/20695-7). UMD was granted a graduate scholarship. This study was financed in part by the Brazilian Coordination for the Improvement of Higher Education Personnel (CAPES - Finance Code 001). José A. Duarte identified the hawkmoths. Deoclécio Q. Guerra (in memoriam), Enrico Bernard, and Juliana C. Correia identified the bats. Vanessa Nobrega helped us in the field. Roberto Lima provided us with logistic support in the field. The owners and managers of RPPN Fazenda Almas allowed us to carry out the project on their farm. James Lucas helped us identify the Amaryllidaceae species. The Long-Term Ecological Research Program (PELD/CNPq, 52.0062./2006-0) provided us with logistic support in the field. We are thankful to Prof. Felipe Amorim and to an anonymous referee for their careful and enriching review of our initial manuscript.
Queiroz JA, Diniz UM, Vázquez DP, Quirino ZM, Santos FAR, Mello MAR, Machado IC. 2020. Bats and hawkmoths form mixed modules with flowering plants in a nocturnal interaction network. Biotropica, early view.