phylin is a package for the r programming environment which offers different methods to spatially interpolate genetic information from phylogeographic data. These interpolations can be used to predict the spatial occurrence of different lineages within a phylogeny using a modified method of kriging, which allows the usage of a genetic distance matrix to derive a model of spatial dependence. phylin improves the available methods to generate interpolated surfaces from a phylogenetic trees by assessing the autocorrelation structure of the genetic information, interpolating the genetic data based on a statistical model, estimating the uncertainty of the predictions and identifying lineage occurrence and contact zones probability without projection of pairwise genetic distances into mid-points between sample locations. The package also includes methods to plot interpolation surfaces and provide summary tables from the generated data and models. We provide an example of the usefulness of this tool by inferring the spatial occurrence of distinct historical evolutionary lineages of the Lataste's viper (Vipera latastei Boscá, 1878) in the Iberian Peninsula and identifying potential contact areas. The maps of phylogenetic patterns obtained with these methods provide a spatial context to test hypotheses related to processes underlying the geographic distribution of genetic diversity and to inform conservation planning.
Journal: Molecular Ecology Resources