funspace: an R package to build, analyze and plot functional trait spaces

Functional trait space analyses are pivotal to define species’ ecological strategies across the tree of life. Yet, there is no single application that streamlines the many sometimes-troublesome steps needed to build and analyze functional trait spaces. To fill this gap, we propose funspace, an R package to easily handle bivariate and multivariate (PCA-based) functional trait space analyses. The six functions that constitute the package can be grouped in three modules: ‘Building and exploring’, ‘Mapping’, and ‘Plotting’. The building and exploring module defines the main features of a functional trait space (e.g., functional diversity metrics) by leveraging kernel density-based methods. The mapping module uses general additive models to map how a target variable distributes within a trait space. The plotting module provides many options for creating flexible and high-quality figures representing the outputs obtained from previous modules. We provide a worked example to demonstrate a complete funspace workflow. funspace will provide researchers working with functional traits across the tree of life with an indispensable asset to easily explore: (i) the main features of any functional trait space, (ii) the relationship between a functional trait space and any other biological or non-biological factor that might contribute to shaping species’ functional diversity.

[1]  J. Tobias,et al.  Trait diversity metrics can perform well with highly incomplete datasets , 2022, bioRxiv.

[2]  L. Laanisto,et al.  Towards a “periodic table” of abiotic stress tolerance strategies of woody plants , 2022, Flora.

[3]  M. Schleuning,et al.  Towards an animal economics spectrum for ecosystem research , 2022, Functional Ecology.

[4]  P. Brancalion,et al.  Small and slow is safe: On the drought tolerance of tropical tree species , 2022, Global change biology.

[5]  A. E‐Vojtkó Book Review: De Bello, F., Carmona, C., Dias, A., Götzenberger, L., Moretti, M. & Berg, M. 2021. Handbook of Trait-Based Ecology: From Theory to R Tools. , 2022, Palaearctic Grasslands - Journal of the Eurasian Dry Grassland Group.

[6]  Samantha K. Dawson,et al.  The traits of “trait ecologists”: An analysis of the use of trait and functional trait terminology , 2021, Ecology and evolution.

[7]  I. Paulsen,et al.  Strategic traits of bacteria and archaea vary widely within substrate use groups. , 2021, FEMS microbiology ecology.

[8]  M. Pärtel,et al.  Fine-root traits in the global spectrum of plant form and function , 2021, Nature.

[9]  M. Pärtel,et al.  Extinction of threatened vertebrates will lead to idiosyncratic changes in functional diversity across the world , 2021, Nature Communications.

[10]  K. Gaston,et al.  Diel niche variation in mammals associated with expanded trait space , 2021, Nature Communications.

[11]  M. Pärtel,et al.  Erosion of global functional diversity across the tree of life , 2021, Science Advances.

[12]  B. McGill,et al.  The dimensionality and structure of species trait spaces. , 2021, Ecology letters.

[13]  S. Mammola,et al.  Concepts and applications in functional diversity , 2020, Functional Ecology.

[14]  M. Hutchings,et al.  The triangular space of abiotic stress tolerance in woody species: a unified trade-off model. , 2020, The New phytologist.

[15]  M. Hutchings,et al.  The triangular space of abiotic stress tolerance in woody species: a unified trade-off model , 2020 .

[16]  Denis Bastianelli,et al.  TRY plant trait database - enhanced coverage and open access. , 2019, Global change biology.

[17]  H. Qian,et al.  V.PhyloMaker: an R package that can generate very large phylogenies for vascular plants , 2019, Ecography.

[18]  Eric J. Pedersen,et al.  Hierarchical generalized additive models in ecology: an introduction with mgcv , 2019, PeerJ.

[19]  Jan Lepš,et al.  Traits Without Borders: Integrating Functional Diversity Across Scales. , 2016, Trends in ecology & evolution.

[20]  Miguel B. Araújo,et al.  sdm: a reproducible and extensible R platform for species distribution modelling , 2016 .

[21]  S. Wright,et al.  The global spectrum of plant form and function , 2015, Nature.

[22]  Anuj Karpatne,et al.  BHPMF – a hierarchical Bayesian approach to gap-filling and trait prediction for macroecology and functional biogeography , 2015 .

[23]  Brody Sandel,et al.  Estimating themissing species bias in plant trait measurements , 2015 .

[24]  E. Pianka,et al.  Functional traits, convergent evolution, and periodic tables of niches , 2015, Ecology letters.

[25]  B. Young,et al.  Imputation of missing data in life‐history trait datasets: which approach performs the best? , 2014 .

[26]  Daniel C. Laughlin,et al.  The intrinsic dimensionality of plant traits and its relevance to community assembly , 2014 .

[27]  D. Bellwood,et al.  Evaluating life-history strategies of reef corals from species traits. , 2012, Ecology letters.

[28]  Eloy Revilla,et al.  Biases in comparative analyses of extinction risk: mind the gap. , 2012, The Journal of animal ecology.

[29]  Liam J. Revell,et al.  phytools: an R package for phylogenetic comparative biology (and other things) , 2012 .

[30]  Peter Bühlmann,et al.  MissForest - non-parametric missing value imputation for mixed-type data , 2011, Bioinform..

[31]  David Mouillot,et al.  The multidimensionality of the niche reveals functional diversity changes in benthic marine biotas across geological time. , 2011, Ecology letters.

[32]  Tarn Duong,et al.  ks: Kernel Density Estimation and Kernel Discriminant Analysis for Multivariate Data in R , 2007 .

[33]  Anne-Béatrice Dufour,et al.  The ade4 Package: Implementing the Duality Diagram for Ecologists , 2007 .

[34]  Alan Y. Chiang,et al.  Generalized Additive Models: An Introduction With R , 2007, Technometrics.

[35]  William G. Lee,et al.  Functional richness, functional evenness and functional divergence: the primary components of functional diversity , 2005 .

[36]  Donald A. Jackson,et al.  How many principal components? stopping rules for determining the number of non-trivial axes revisited , 2005, Comput. Stat. Data Anal..

[37]  William N. Venables,et al.  GLMs, GAMs and GLMMs: an overview of theory for applications in fisheries research , 2004 .

[38]  J. P. Grime,et al.  The plant traits that drive ecosystems: Evidence from three continents , 2004 .

[39]  Mark Westoby,et al.  A leaf-height-seed (LHS) plant ecology strategy scheme , 1998, Plant and Soil.

[40]  M. Westoby,et al.  ECOLOGICAL STRATEGIES : Some Leading Dimensions of Variation Between Species , 2002 .

[41]  K. Rose,et al.  Patterns of Life-History Diversification in North American Fishes: implications for Population Regulation , 1992 .

[42]  P. Greenslade,et al.  Adversity Selection and the Habitat Templet , 1983, The American Naturalist.

[43]  J. P. Grime,et al.  Evidence for the Existence of Three Primary Strategies in Plants and Its Relevance to Ecological and Evolutionary Theory , 1977, The American Naturalist.

[44]  Eric R. Pianka,et al.  On r- and K-Selection , 1970, The American Naturalist.

[45]  J. Horn A rationale and test for the number of factors in factor analysis , 1965, Psychometrika.