Appendix 2: R Script This file contains the R scripts we used in the phylogenetic analysis of this paper (Phylogenetic signal and PGLS models). from Phylogeny affects host's weight, immune response and parasitism in damselflies and dragonflies Jaakko J. Ilvonen Jukka Suhonen 10.6084/m9.figshare.4195776.v1 https://rs.figshare.com/articles/journal_contribution/Appendix_2_R_Script_This_file_contains_the_R_scripts_we_used_in_the_phylogenetic_analysis_of_this_paper_Phylogenetic_signal_and_PGLS_models_from_Phylogeny_affects_host_s_weight_immune_response_and_parasitism_in_damselflies_and_dragonflies/4195776 Host-parasite interactions are an intriguing part of ecology, and understanding how hosts are able to withstand parasitic attacks, e.g. by allocating resources to immune defence is important. Dragonflies and damselflies show a variety of parasitism patterns, but large-scale comparative immune defence studies are rare, and it is difficult to say what the interplay is between their immune defence and parasitism. The aim of this study was to find whether there are differences in immune response between different dragonfly and damselfly species and whether these could explain their levels of gregarine and water mite parasitism. Using an artificial pathogen, a piece of nylon filament, we measured the encapsulation response of 22 different dragonfly and damselfly species and found that (i) there are significant encapsulation differences between species, (ii) body mass has a strong association on encapsulation and parasitism levels, (iii) body mass shows a strong phylogenetic signal, whereas encapsulation response and gregarine and water mite parasitism show weak signals and (iv) associations between the traits are affected by phylogeny. We do not know what the relationship is between these four traits, but it seems clear that phylogeny plays a role in determining parasitism levels of damselflies and dragonflies. 2016-11-02 17:21:01 host-parasite associations immune defence parasitism insect encapsulation