<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//TaxonX//DTD Taxonomic Treatment Publishing DTD v0 20100105//EN" "https://bdj.pensoft.net/nlm/tax-treatment-NS0.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tp="http://www.plazi.org/taxpub" article-type="research-article">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">1</journal-id>
      <journal-id journal-id-type="index">urn:lsid:arphahub.com:pub:F9B2E808-C883-5F47-B276-6D62129E4FF4</journal-id>
      <journal-id journal-id-type="aggregator">urn:lsid:zoobank.org:pub:245B00E9-BFE5-4B4F-B76E-15C30BA74C02</journal-id>
      <journal-title-group>
        <journal-title xml:lang="en">Biodiversity Data Journal</journal-title>
        <abbrev-journal-title xml:lang="en">BDJ</abbrev-journal-title>
      </journal-title-group>
      <issn pub-type="ppub">1314-2836</issn>
      <issn pub-type="epub">1314-2828</issn>
      <publisher>
        <publisher-name>Pensoft Publishers</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.3897/BDJ.13.e168221</article-id>
      <article-id pub-id-type="publisher-id">168221</article-id>
      <article-id pub-id-type="manuscript">28745</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>R Package</subject>
        </subj-group>
        <subj-group subj-group-type="scientific_subject">
          <subject>Biodiversity &amp; Conservation</subject>
          <subject>Biogeography</subject>
          <subject>Data analysis &amp; Modelling</subject>
          <subject>Ecology &amp; Environmental sciences</subject>
          <subject>Evolutionary biology</subject>
          <subject>Palaeontology</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>commecometrics: an R package for trait-environment modelling at the community level</article-title>
      </title-group>
      <contrib-group content-type="authors">
        <contrib contrib-type="author" corresp="yes">
          <name name-style="western">
            <surname>Hurtado-Materon</surname>
            <given-names>María A.</given-names>
          </name>
          <email xlink:type="simple">maria.h.m_1995@tamu.edu</email>
          <uri content-type="orcid">https://orcid.org/0000-0002-3966-5478</uri>
          <xref ref-type="aff" rid="A1">1</xref>
          <role content-type="http://credit.niso.org/contributor-roles/conceptualization/">Conceptualization</role>
          <role content-type="http://credit.niso.org/contributor-roles/writing-original-draft/">Writing - original draft</role>
          <role content-type="http://credit.niso.org/contributor-roles/writing-review-editing/">Writing - review and editing</role>
          <role content-type="http://credit.niso.org/contributor-roles/formal-analysis/">Formal analysis</role>
          <role content-type="http://credit.niso.org/contributor-roles/investigation/">Investigation</role>
          <role content-type="http://credit.niso.org/contributor-roles/methodology/">Methodology</role>
          <role content-type="http://credit.niso.org/contributor-roles/software/">Software</role>
          <role content-type="http://credit.niso.org/contributor-roles/visualization/">Visualization</role>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Siciliano-Martina</surname>
            <given-names>Leila</given-names>
          </name>
          <xref ref-type="aff" rid="A2">2</xref>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Short</surname>
            <given-names>Rachel A.</given-names>
          </name>
          <uri content-type="orcid">https://orcid.org/0000-0001-6180-3294</uri>
          <xref ref-type="aff" rid="A3">3</xref>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>McGuire</surname>
            <given-names>Jenny L.</given-names>
          </name>
          <xref ref-type="aff" rid="A4">4</xref>
        </contrib>
        <contrib contrib-type="author" corresp="no">
          <name name-style="western">
            <surname>Lawing</surname>
            <given-names>A. Michelle</given-names>
          </name>
          <xref ref-type="aff" rid="A5">5</xref>
        </contrib>
      </contrib-group>
      <aff id="A1">
        <label>1</label>
        <addr-line content-type="verbatim">Ecology and Evolutionary Biology Program, Texas A&amp;M University. Department of Ecology and Conservation Biology, Texas A&amp;M University, College Station, United States of America</addr-line>
        <institution>Ecology and Evolutionary Biology Program, Texas A&amp;M University. Department of Ecology and Conservation Biology, Texas A&amp;M University</institution>
        <addr-line content-type="city">College Station</addr-line>
        <country>United States of America</country>
      </aff>
      <aff id="A2">
        <label>2</label>
        <addr-line content-type="verbatim">Department of Biology, Texas State University, San Marcos, United States of America</addr-line>
        <institution>Department of Biology, Texas State University</institution>
        <addr-line content-type="city">San Marcos</addr-line>
        <country>United States of America</country>
      </aff>
      <aff id="A3">
        <label>3</label>
        <addr-line content-type="verbatim">Department of Natural Resource Management, South Dakota State University, Rapid City, United States of America</addr-line>
        <institution>Department of Natural Resource Management, South Dakota State University</institution>
        <addr-line content-type="city">Rapid City</addr-line>
        <country>United States of America</country>
      </aff>
      <aff id="A4">
        <label>4</label>
        <addr-line content-type="verbatim">School of Biological Sciences, Georgia Institute of Technology. School of Earth and Atmospheric Sciences, Georgia Institute of Technology. Interdisciplinary Graduate Program in Quantitative Biosciences., Atlanta, United States of America</addr-line>
        <institution>School of Biological Sciences, Georgia Institute of Technology. School of Earth and Atmospheric Sciences, Georgia Institute of Technology. Interdisciplinary Graduate Program in Quantitative Biosciences.</institution>
        <addr-line content-type="city">Atlanta</addr-line>
        <country>United States of America</country>
      </aff>
      <aff id="A5">
        <label>5</label>
        <addr-line content-type="verbatim">Department of Ecology and Conservation Biology, Texas A&amp;M University. Ecology and Evolutionary Biology Program, Texas A&amp;M University, College Station, United States of America</addr-line>
        <institution>Department of Ecology and Conservation Biology, Texas A&amp;M University. Ecology and Evolutionary Biology Program, Texas A&amp;M University</institution>
        <addr-line content-type="city">College Station</addr-line>
        <country>United States of America</country>
      </aff>
      <author-notes>
        <fn fn-type="corresp">
          <p>Corresponding author: María A. Hurtado-Materon (<email xlink:type="simple">maria.h.m_1995@tamu.edu</email>).</p>
        </fn>
        <fn fn-type="edited-by">
          <p>Academic editor: Zachary Foster</p>
        </fn>
      </author-notes>
      <pub-date pub-type="collection">
        <year>2025</year>
      </pub-date>
      <pub-date pub-type="epub">
        <day>16</day>
        <month>10</month>
        <year>2025</year>
      </pub-date>
      <volume>13</volume>
      <elocation-id>e168221</elocation-id>
      <uri content-type="arpha" xlink:href="http://openbiodiv.net/5B84BF49-6EE4-559A-AD0D-7D319F87144A">5B84BF49-6EE4-559A-AD0D-7D319F87144A</uri>
      <history>
        <date date-type="received">
          <day>09</day>
          <month>08</month>
          <year>2025</year>
        </date>
        <date date-type="accepted">
          <day>17</day>
          <month>09</month>
          <year>2025</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>María A. Hurtado-Materon, Leila Siciliano-Martina, Rachel A. Short, Jenny L. McGuire, A. Michelle Lawing</copyright-statement>
        <license license-type="creative-commons-attribution" xlink:href="http://creativecommons.org/licenses/by/4.0/" xlink:type="simple">
          <license-p>This is an open access article distributed under the terms of the Creative Commons Attribution License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.</license-p>
        </license>
      </permissions>
      <abstract>
        <label>Abstract</label>
        <p>The R package <italic>commecometrics</italic> provides an accessible, open-access framework for modelling trait–environment relationships using community-level trait data from modern and ancient species. Ecometrics links the trait distributions of communities to their local environmental variables, enabling the reconstruction of past conditions and the prediction of community responses under future climate change. Existing tools for functional trait analysis often lack palaeontological integration or are limited to specific taxa. <italic>commecometrics</italic> addresses these gaps by offering a suite of functions to summarise trait distributions, construct ecometric models, visualise trait–environment relationships, assess model robustness and reconstruct environmental conditions. The package is designed for broad applicability across ecological and palaeoecological studies and includes tools for trait-based biodiversity analysis beyond ecometrics. Through a worked example using carnassial tooth relative blade length (RBL) in carnivoran mammals, we demonstrate the package’s capabilities for analysing trait–environment dynamics across space and time.</p>
      </abstract>
      <kwd-group>
        <label>Keywords</label>
        <kwd>ecometrics</kwd>
        <kwd>palaeoecology</kwd>
        <kwd>community ecology</kwd>
        <kwd>functional traits.</kwd>
      </kwd-group>
      <counts>
        <fig-count count="4"/>
        <table-count count="1"/>
        <ref-count count="37"/>
      </counts>
    </article-meta>
  </front>
  <body>
    <sec sec-type="Introduction">
      <title>Introduction</title>
      <p>Ecometrics is the trait-based quantitative study of the relationship between community-level trait distributions and environmental variables (<xref ref-type="bibr" rid="B13423365">Polly et al. 2011</xref>). The central premise is that certain trait values are more likely to occur in specific environmental settings, allowing the use of community traits to infer local conditions (<xref ref-type="bibr" rid="B13423356">Polly et al. 2016</xref>). Summarising trait data at the community level (e.g. mean, standard deviation) and comparing these summaries with known environmental variables allows ecometric models to infer environmental conditions at fossil sites or predict future trait distributions under climate change (<xref ref-type="bibr" rid="B13423529">McGuire et al. 2023</xref>).</p>
      <p>Reconstructing ancient environments is challenging due to the incompleteness of the fossil record, preservation biases and the complexity of geochemical interpretation (<xref ref-type="bibr" rid="B13423599">Koch 1998</xref>, <xref ref-type="bibr" rid="B13423590">Jackson and Erwin 2006</xref>). The latter requires understanding of the chemical processes involved in fossil formation and results are influenced by factors such as diet, physiology and water sources (<xref ref-type="bibr" rid="B13423599">Koch 1998</xref>, <xref ref-type="bibr" rid="B13423590">Jackson and Erwin 2006</xref>). Given the fragmentary and complex nature of the fossil record, multiple lines of evidence and methodological approaches are often necessary to gain a full picture of ancient environments (<xref ref-type="bibr" rid="B13423590">Jackson and Erwin 2006</xref>). Ecometrics offers an alternative framework for reconstructing past environments from fossil remains of ancient communities (<xref ref-type="bibr" rid="B13423722">Polly and Head 2015</xref>). Ecometric models have been applied in mammals (<xref ref-type="bibr" rid="B13423538">Polly 2010</xref>, <xref ref-type="bibr" rid="B13423420">Short and Lawing 2021</xref>, <xref ref-type="bibr" rid="B13423429">Schap et al. 2024</xref>), plants (<xref ref-type="bibr" rid="B13423651">Dunn et al. 2015</xref>, <xref ref-type="bibr" rid="B13423661">Peppe et al. 2017</xref>) and reptiles (<xref ref-type="bibr" rid="B13423669">Head et al. 2009</xref>, <xref ref-type="bibr" rid="B13423331">Lawing et al. 2012</xref>, <xref ref-type="bibr" rid="B13423411">Parker et al. 2023</xref>) to understand the relationship between functional traits and environmental variables such as precipitation, temperature and vegetation cover.</p>
      <p>Ecometric analyses have consistently demonstrated strong links between community-level trait distributions and environmental variables. For instance, hypsodonty (an index of tooth crown height to root depth) in mammals reflects annual precipitation experienced by communities of large herbivores (<xref ref-type="bibr" rid="B13423697">Janis 1988</xref>, <xref ref-type="bibr" rid="B13423682">Fortelius et al. 2002</xref>, <xref ref-type="bibr" rid="B13423608">Eronen et al. 2010</xref>). Species in open, arid habitats with grass tend to have higher hypsodonty indices, while those in forested, less abrasive environments have lower values (<xref ref-type="bibr" rid="B13423608">Eronen et al. 2010</xref>). Studies that applied ecometrics to megafaunal communities, revealed that trait compositions reconfigured to align with environmental conditions that underlie massive biodiversity turnover events (<xref ref-type="bibr" rid="B13423344">Lauer et al. 2023</xref>). Other applications have explored the predictive power of functional traits – body size in turtles (<xref ref-type="bibr" rid="B13423411">Parker et al. 2023</xref>), snakes (<xref ref-type="bibr" rid="B13423331">Lawing et al. 2012</xref>) and herbivorous mammals (<xref ref-type="bibr" rid="B13423344">Lauer et al. 2023</xref>, <xref ref-type="bibr" rid="B13423439">Wilson et al. 2024</xref>), diet in herbivorous (<xref ref-type="bibr" rid="B13423393">Short et al. 2021</xref>, <xref ref-type="bibr" rid="B13423439">Wilson et al. 2024</xref>), carnivorous (<xref ref-type="bibr" rid="B13423316">Siciliano‐Martina et al. 2024</xref>) and small mammals (<xref ref-type="bibr" rid="B13423429">Schap et al. 2024</xref>) and locomotion traits in carnivores (<xref ref-type="bibr" rid="B13423538">Polly 2010</xref>) and artiodactyls (<xref ref-type="bibr" rid="B13423420">Short and Lawing 2021</xref>, <xref ref-type="bibr" rid="B13423402">Short et al. 2023</xref>) – demonstrating that ecometric models can capture environmental patterns at regional and continental scales and can provide informative palaeoclimate reconstructions. These results highlight the value of ecometrics as a functional, comparative tool to model biotic responses to changes in climate and to infer past environmental conditions. Despite their utility, ecometrics methods have been limited by the absence of an accessible, standardised computational platform.</p>
      <p>R packages for analysing functional traits have been developed in recent years. Current packages focus on trait manipulation, the estimation of functional spaces based on traits (<xref ref-type="bibr" rid="B13423449">Carmona et al. 2024</xref>) and the access to and exploration of databases containing functional traits and environmental variables (<xref ref-type="bibr" rid="B13423458">Denelle et al. 2023</xref>, <xref ref-type="bibr" rid="B13423467">Lam et al. 2024</xref>). Some also summarise functional trait distributions at the community level (<xref ref-type="bibr" rid="B13423520">Pavoine 2020</xref>, <xref ref-type="bibr" rid="B13423502">Zhang et al. 2021</xref>, <xref ref-type="bibr" rid="B13423478">Magneville et al. 2022</xref>, <xref ref-type="bibr" rid="B13423511">Grenié and Gruson 2023</xref>) and enable the analysis of ecological data from a metacommunity perspective (<xref ref-type="bibr" rid="B13423493">Debastiani and Pillar 2012</xref>). However, these packages are primarily focused on plants, lack easy integration with geographic space and do not include functions to reconstruct palaeoenvironments based on the fossil record.</p>
      <p>To address these gaps, we introduce <italic>commecometrics</italic>, an R package that facilitates the integration of trait data with environmental predictors across temporal and spatial scales. It offers a workflow for summarising community trait metrics, building ecometric models and evaluating trait–environment relationships with visualisation tools. In this paper, we describe the structure and functionality of <italic>commecometrics</italic>, demonstrate its use with an empirical dataset and discuss potential applications in conservation and palaeoecology. <italic>commecometrics</italic> is intended for ecologists, palaeontologists and conservation biologists interested in using trait-based methods to explore how traits within communities reflect their environments in the past or present. The <italic>commecometrics</italic> package is modular, allowing users to apply individual components of the workflow independently, such as summarising traits, testing models, or reconstructing past climates, depending on the structure of their data and research goals.</p>
    </sec>
    <sec sec-type="Installation">
      <title>Installation</title>
      <p>The <italic>commecometrics</italic> package is available on CRAN and can be installed using the standard <italic>install.packages()</italic> function. The development version is hosted on GitHub.</p>
      <p># Install the stable version from CRAN</p>
      <p>install.packages("commecometrics")</p>
      <p># Install the development version from GitHub</p>
      <p># First install devtools if not already installed</p>
      <p>install.packages("devtools")</p>
      <p>devtools::install_github("mariahm1995/commecometrics")</p>
    </sec>
    <sec sec-type="Usage">
      <title>Usage</title>
      <p>The <italic>commecometrics</italic> package provides a modular workflow for analysing trait–environment relationships at the community level and reconstructing past environments using fossil trait data. Fig. <xref ref-type="fig" rid="F13423706">1</xref> outlines the main components of the workflow.</p>
      <p>The process begins with three core inputs: (1) a dataset with species-level trait values; (2) a set of species distribution maps in shapefile format and (3) a set of geographic sampling points with associated environmental variables. These inputs are combined using the <italic>summarize_traits_by_point()</italic> function, which calculates community-level trait distributions (e.g. mean and standard deviation) at each geographic point based on the species present. These summarised trait data form the basis for all downstream analyses, but may be a desired output in itself.</p>
      <p>After the first step, users can: (1) Build an ecometric model using <italic>ecometric_model()</italic> or <italic>ecometric_model_qual()</italic> (for categorical traits). These models describe how trait distributions relate to environmental variables across the landscape; (2) Evaluate model performance using <italic>sensitivity_analysis()</italic> or <italic>sensitivity_analysis_qual()</italic> to test robustness and assess how well the model captures the underlying trait–environment relationships; (3) Visualise the ecometric space using <italic>ecometric_space()</italic> or <italic>ecometric_space_qual()</italic>, which plots environmental estimates across trait value bins, providing an intuitive map of how traits vary with environment and (4) Reconstruct environmental conditions at fossil sites using <italic>reconstruct_env()</italic> or <italic>reconstruct_env_qual()</italic>. These functions estimate past environmental conditions based on the trait composition of fossil communities.</p>
      <p><italic>commecometrics</italic> provides a flexible and modular framework for conducting ecometric analyses. While outputs from one function (e.g. community-level trait summaries) can be passed to subsequent functions (e.g. model fitting), users are not required to follow a rigid pipeline. For instance, the arguments <italic>comm_metric_1</italic> and <italic>comm_metric_2</italic> in the <italic>summarize_traits_by_point()</italic> function allow users to apply any summary function to community trait data. However, users may supply a custom dataframe, such as one containing community-weighted trait means based on energy intake and use it directly in downstream modelling functions (<xref ref-type="bibr" rid="B13423628">Žliobaitė and Lawing 2025</xref>). This flexible design supports a wide range of applications.</p>
    </sec>
    <sec sec-type="Usage Beyond Ecometric Analysis">
      <title>Usage Beyond Ecometric Analysis</title>
      <p>The R package commecometrics supports a wide range of community-level analyses beyond ecometric applications (see Table <xref ref-type="table" rid="T13423710">1</xref> for function descriptions). It allows users to compile species lists for specific geographic locations, calculate trait-based metrics and assign communities to continents based on spatial coordinates. These capabilities are broadly applicable to studies examining various dimensions of biodiversity. In particular, the function <italic>summarize_traits_by_point()</italic> can be employed in diverse analytical contexts beyond traditional ecometric modelling. Trait distributions are calculated for each community using a user-specified function. By default, the mean and standard deviation are computed, as these are commonly used in ecometric analyses. However, users can substitute any function that accepts a numeric vector as input, including the fd_ functions from the R package fundiversity (see example below), to derive other functional diversity metrics (<xref ref-type="bibr" rid="B13423511">Grenié and Gruson 2023</xref>).</p>
      <p>traitsByPoint &lt;- summarize_traits_by_point(</p>
      <p>points_df = geoPoints,</p>
      <p>trait_df = traits,</p>
      <p>species_polygons = spRanges,</p>
      <p>summary_trait_1 = function(x) fundiversity::fd_fdis(x),</p>
      <p>trait_column = "RBL",</p>
      <p>species_name_col = "sci_name",</p>
      <p>continent = TRUE,</p>
      <p>parallel = TRUE)</p>
      <p>The function <italic>inspect_point_species()</italic> allows users to verify the species present at each geographic point and review associated metrics. It supports data exploration by providing a visual, interactive interface for examining large datasets. Using the <italic>leaflet</italic> package (<xref ref-type="bibr" rid="B13423551">Cheng et al. 2015</xref>), the function generates an interactive map that displays selected sampling points as coloured markers: blue for points with enough species that have trait data (above a user-defined threshold) and red for those that fall below. Clicking on any point opens a pop-up showing the point ID, trait summary statistics (mean, standard deviation, richness), optional environmental variable values and a list of overlapping species (Fig. <xref ref-type="fig" rid="F13423708">2</xref>). This tool facilitates interpretability by linking spatial locations to ecological and trait-based summaries in an intuitive format, making it broadly applicable to ecological and biogeographic research.</p>
    </sec>
    <sec sec-type="Example">
      <title>Example</title>
      <p>To demonstrate the functionality of <italic>commecometrics</italic>, we applied the package to a dataset of carnivoran carnassial tooth relative blade length (RBL) to test its relationship with the habitat structure (<xref ref-type="bibr" rid="B13423316">Siciliano‐Martina et al. 2024</xref>). This example illustrates the complete workflow: summarising trait data, fitting a categorical ecometric model, projecting fossil sites, visualising ecometric space and evaluating model performance.</p>
      <p>
        <underline>Step 1: Load and prepare data</underline>
      </p>
      <p>This example uses three input datasets provided by the user. The file sampling_points.csv contains environmental sampling locations and includes a column named "VegSimple", which classifies each point into a categorical vegetation type. The file traits.csv provides species-level values for the carnassial tooth relative blade length. Finally, species distribution data are provided in a shapefile containing geographic range polygons for all terrestrial mammals. In this analysis, the dataset is filtered to include only species belonging to the order Carnivora. The polygons were downloaded from the IUCN Red List website, which hosts expert-reviewed range maps for many taxonomic groups (<xref ref-type="bibr" rid="B13423620">IUCN 2025</xref>). Any taxonomic group with available distribution data on the IUCN platform can be used with the commecometrics package.</p>
      <p># Download data from Figshare</p>
      <p>options(timeout = 600)</p>
      <p>download.file("https://ndownloader.figshare.com/files/56228033", destfile = "data.zip", mode = "wb")</p>
      <p>unzip("data.zip")</p>
      <p># Load data</p>
      <p>points &lt;- read.csv("data/sampling_points.csv")</p>
      <p>traits &lt;- read.csv("data/traits.csv")</p>
      <p>fossil &lt;- read.csv("data/fossil_RBL.csv", header = TRUE)</p>
      <p>geometry &lt;- sf::st_read("data/data_0.shp")</p>
      <p>geography$SCI_NAME &lt;- gsub(" ", "_", geography$SCI_NAME)</p>
      <p>
        <underline>Step 2: Summarise traits at sampling points</underline>
      </p>
      <p>The first step is to calculate community-level trait summaries at each environmental sampling point. This is done by intersecting each point with the species range polygons to determine which species are present and then computing the mean and standard deviation of the selected trait across those species. This summarised trait information forms the basis for all downstream ecometric modelling steps.</p>
      <p>traitsByPoint &lt;- summarize_traits_by_point(</p>
      <p>points_df = points,</p>
      <p>trait_df = traits,</p>
      <p>species_polygons = geometry,</p>
      <p>species_name_col = "SCI_NAME",</p>
      <p>trait_column = "RBL")</p>
      <p>To explore the species composition at sampling points, users can interact with the <italic>inspect_point_species()</italic> function, described in the Usage Beyond Ecometric Analysis section. If <italic>point_ids</italic> argument is left NULL, the function selects a random sample of 10 points. Otherwise, users can inspect specific point IDs to examine known or targeted locations. The user can also select the number of points to inspect via the argument <italic>n_random</italic>.</p>
      <p># View species present at randomly selected points with at least 3 species with trait data</p>
      <p>inspect_point_species(</p>
      <p>traits_summary = traitsByPoint,</p>
      <p>min_species_valid = 3)</p>
      <p># View species at specific point IDs</p>
      <p>inspect_point_species(</p>
      <p>traits_summary = traitsByPoint,</p>
      <p>min_species_valid = 3,</p>
      <p>point_ids = c("113435", "99936", "101328"),</p>
      <p>ID_col = "GlobalID")</p>
      <p>
        <underline>Step 3: Build a categorical ecometric model</underline>
      </p>
      <p>With community-level trait summaries available, the next step is to build an ecometric model that relates trait distributions to a categorical environmental variable. In this case, we use "VegSimple", a simplified vegetation classification. The model bins the trait space (mean and standard deviation of RBL) into a grid and assigns each bin to the most likely vegetation category based on the observed data. Predicted environmental variables are calculated using Maximum Likelihood; this method has been shown to produce the most accurate estimates from community trait values (<xref ref-type="bibr" rid="B13423393">Short et al. 2021</xref>).</p>
      <p>modelVeg &lt;- ecometric_model_qual(</p>
      <p>points_df = traitsByPoint$points,</p>
      <p>category_col = "VegSimple",</p>
      <p>grid_bins_1 = 25,</p>
      <p>grid_bins_2 = 25)</p>
      <p>If users do not specify the number of bins, the function automatically determines an optimal bin number using <italic>optimal_bins()</italic>, which implements Scott’s rule (<xref ref-type="bibr" rid="B13423559">Scott 1979</xref>, <xref ref-type="bibr" rid="B13423344">Lauer et al. 2023</xref>). This approach selects bin widths based on data spread and sample size, aiming to balance detail and generalisation. The commecometrics package includes the <italic>optimal_bins()</italic> function to help users assess and set appropriate bin numbers for their datasets, ensuring that the model captures meaningful structure in the trait–environment relationship without overfitting or excessive generalisation.</p>
      <p>
        <underline>Step 4: Reconstruct environments at fossil sites</underline>
      </p>
      <p>Once an ecometric model has been fitted, it can be used to estimate the most likely environmental category at fossil sites based on the trait composition of fossil communities. Here, we use a fossil dataset with RBL summaries and reconstruct the corresponding vegetation category. This function assigns fossil communities to the most probable vegetation category based on their trait values. If match_nearest = TRUE, the function also assigns each fossil site to its nearest modern sampling point.</p>
      <p># Reconstruct vegetation category at fossil sites using the categorical ecometric model</p>
      <p>fossil_results &lt;- reconstruct_env_qual(</p>
      <p>fossildata = fossil,</p>
      <p>model_out = modelVeg,</p>
      <p>match_nearest = TRUE,</p>
      <p>fossil_lon = "long",</p>
      <p>fossil_lat = "lat",</p>
      <p>modern_id = "GlobalID",</p>
      <p>modern_lon = "Longitude",</p>
      <p>modern_lat = "Latitude")</p>
      <p>
        <underline>Step 5: Visualise the ecometric space</underline>
      </p>
      <p>The ecometric model can be visualised using the <italic>ecometric_space_qual()</italic> function, which generates two types of outputs. The first is the category map (Fig. <xref ref-type="fig" rid="F13423711">3</xref>), which shows the most probable environmental category (e.g. vegetation type) predicted for each combination of community-level mean (x-axis) and standard deviation (y-axis) trait values (the ecometric trait space). Each grid cell represents a bin in this space and its fill colour corresponds to the predicted category. If fossil data are provided via the fossil_data argument, the corresponding fossil and modern trait bins are outlined: fossil communities are shown with black outlines and their nearest modern analogues are shown with red outlines (by default). This plot is useful for identifying distinct trait–environment associations, visualising community structure and verifying how fossil communities map on to modern ecometric space. Since <italic>ecometric_space_qual()</italic> returns a ggplot2 object, it can be saved using the <italic>ggsave()</italic> function from the ggplot2 package (<xref ref-type="bibr" rid="B13423576">Wickham et al. 2007</xref>).</p>
      <p>plots &lt;- ecometric_space_qual(</p>
      <p>model_out = modelVeg,</p>
      <p>fossil_data = fossil_results,</p>
      <p>x_label = "Mean",</p>
      <p>y_label = "SD")</p>
      <p>library(ggplot2)</p>
      <p>ggsave("ecometric_space.png", plots[[1]],</p>
      <p>width = 10, height = 7.5, units = "cm")</p>
      <p>The second output is a set of probability maps (Fig. <xref ref-type="fig" rid="F13423713">4</xref>), with one map generated for each environmental category. These plots show the probability that each trait bin belongs to a given category. The colour gradient indicates the probability (from low to high) that a particular bin is associated with that environment, while bins with zero probability are rendered transparent to highlight informative areas of trait space. If fossil_data is included, fossil and modern analogue bins are outlined as in the category map. These probability maps help users evaluate areas of overlap or uncertainty and determine how confidently trait combinations can be assigned to specific categories. To display all maps together, individual ggplot2 plots are combined using the patchwork package (<xref ref-type="bibr" rid="B13423568">Pedersen 2019</xref>), which simplifies the layout of complex multi-panel figures.</p>
      <p>library(patchwork)</p>
      <p>combinePlot &lt;- plots[[2]][[1]] + plots[[2]][[2]] + plots[[2]][[3]] +</p>
      <p>plots[[2]][[4]] + plots[[2]][[5]] + plot_layout(guides = "collect") &amp;</p>
      <p>theme(legend.position = "bottom")</p>
      <p>ggsave("probability_maps.png", combinePlot,</p>
      <p>width = 20, height = 15, units = "cm")</p>
      <p>
        <underline>Step 6: Assess model sensitivity</underline>
      </p>
      <p>Finally, the robustness of the ecometric model can be evaluated using <italic>sensitivity_analysis_qual()</italic>. This function performs a bootstrap resampling procedure to test how the model performs under varying sample sizes. It provides both training accuracy (sensitivity) and test accuracy (transferability), which are critical for understanding model limitations.</p>
      <p>sensitivity_results &lt;- sensitivity_analysis_qual(</p>
      <p>points_df = traitsByPoint$points,</p>
      <p>category_col = "VegSimple",</p>
      <p>sample_sizes = seq(100,10000,1000))</p>
      <p>This example demonstrates how <italic>commecometrics</italic> can be applied to model the relationship between functional traits and categorical environmental variables and to reconstruct palaeoenvironments from fossil data. The same workflow can be applied to continuous environmental variables using the parallel functions <italic>ecometric_model()</italic>, <italic>ecometric_space()</italic> and <italic>reconstruct_env()</italic>.</p>
    </sec>
    <sec sec-type="Limitations">
      <title>Limitations</title>
      <p>The utility of <italic>commecometrics</italic> is currently constrained by data availability. The package is designed for taxonomic groups for which both species distribution and functional trait databases exist, most commonly plants and vertebrates (<xref ref-type="bibr" rid="B13423637">Vermillion et al. 2018</xref>). As a result, its applicability to many other groups remains limited due to the relative scarcity of trait and range datasets. Additionally, the palaeoecological applications of <italic>commecometrics</italic> require that traits be reliably measurable from the fossil record. This restricts trait selection to features that can be measured throughout fossilised material (e.g. dental or skeletal), which may not be feasible for all taxa or traits of interest.</p>
      <p>We emphasize the importance of continued efforts to collect and share data for undersampled taxonomic groups. Expanding trait–environment frameworks like ecometrics to a broader range of organisms will provide a more comprehensive view of ecological dynamics and improve our understanding of ecosystem responses to climate change (<xref ref-type="bibr" rid="B13423402">Short et al. 2023</xref>). We invite researchers and data providers to contribute to this goal, thereby enhancing our collective ability to study biodiversity patterns across spatial and temporal scales.</p>
    </sec>
    <sec sec-type="Conclusion">
      <title>Conclusion</title>
      <p>It is critical that we understand how communities have and will respond to changing environmental conditions. The <italic>commecometrics</italic> package provides many tools to facilitate these analyses. At its full capability, it can be used to build ecometric models, which establish trait-environmental relationships and reconstruct past, present and future environmental conditions given community compositions.</p>
      <p>Component functions are even more helpful to a broader suite of biodiversity analyses. Ecometric models provide a means to quantitatively assess past environmental conditions, allowing us to determine how ecosystems have shifted in response to fine-scale change. These analyses will be crucial for evaluating which modern plant and animal communities will need to reconfigure in response to ongoing global change and, potentially, for evaluating how and where those reconfigurations could occur given modern species distributions.</p>
    </sec>
  </body>
  <back>
    <ack>
      <title>Acknowledgements</title>
      <p>This work was partially supported by National Science Foundation Grants 2124836, 2124770 and 2334543 and United States Department of Agriculture National Institute of Food and Agriculture Hatch projects 1020451 and 7004129 and Multistate project 7004187.</p>
    </ack>
    <sec sec-type="Author contributions">
      <title>Author contributions</title>
      <p>M.A.H.M.: Conceptualisation, Visualisation, Formal analysis, Investigation, Methodology, Software, Writing – original draft, Writing – review and editing.</p>
      <p>L.S.M.: Data curation, Resources, Writing – review and editing.</p>
      <p>R.A.S.: Data curation, Methodology, Validation, Writing – review and editing.</p>
      <p>J.L.M.: Data curation, Supervision, Methodology, Resources, Writing – review and editing.</p>
      <p>A.M.L.: Project administration, Supervision, Visualisation, Methodology, Writing – review and editing.</p>
    </sec>
    <sec sec-type="Conflicts of interest">
      <title>Conflicts of interest</title>
      <p>No conflict of interest to declare</p>
      <p>Disclaimer: This article is (co-)authored by any of the Editors-in-Chief, Managing Editors or their deputies in this journal.</p>
    </sec>
    <ref-list>
      <title>References</title>
      <ref id="B13423449">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Carmona</surname>
              <given-names>Carlos P.</given-names>
            </name>
            <name name-style="western">
              <surname>Pavanetto</surname>
              <given-names>Nicola</given-names>
            </name>
            <name name-style="western">
              <surname>Puglielli</surname>
              <given-names>Giacomo</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>funspace: An R package to build, analyse and plot functional trait spaces</article-title>
          <source>Diversity and Distributions</source>
          <volume>30</volume>
          <issue>4</issue>
          <uri>https://onlinelibrary.wiley.com/doi/10.1111/ddi.13820</uri>
          <pub-id pub-id-type="doi">10.1111/ddi.13820</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423551">
        <element-citation publication-type="other">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Cheng</surname>
              <given-names>Joe</given-names>
            </name>
            <name name-style="western">
              <surname>Schloerke</surname>
              <given-names>Barret</given-names>
            </name>
            <name name-style="western">
              <surname>Karambelkar</surname>
              <given-names>Bhaskar</given-names>
            </name>
            <name name-style="western">
              <surname>Xie</surname>
              <given-names>Yihui</given-names>
            </name>
          </person-group>
          <year>2015</year>
          <article-title>leaflet: Create Interactive Web Maps with the JavaScript 'Leaflet' Library</article-title>
          <comment>Institution: Comprehensive R Archive Network Pages: 2.2.2</comment>
          <uri>https://CRAN.R-project.org/package=leaflet</uri>
          <pub-id pub-id-type="doi">10.32614/CRAN.package.leaflet</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423493">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Debastiani</surname>
              <given-names>Vanderlei J.</given-names>
            </name>
            <name name-style="western">
              <surname>Pillar</surname>
              <given-names>Valério D.</given-names>
            </name>
          </person-group>
          <year>2012</year>
          <article-title>SYNCSA—R tool for analysis of metacommunities based on functional traits and phylogeny of the community components</article-title>
          <source>Bioinformatics</source>
          <volume>28</volume>
          <issue>15</issue>
          <fpage>2067</fpage>
          <lpage>2068</lpage>
          <pub-id pub-id-type="doi">10.1093/bioinformatics/bts325</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423458">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Denelle</surname>
              <given-names>Pierre</given-names>
            </name>
            <name name-style="western">
              <surname>Weigelt</surname>
              <given-names>Patrick</given-names>
            </name>
            <name name-style="western">
              <surname>Kreft</surname>
              <given-names>Holger</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>An R package to access the Global Inventory of Floras and Traits</article-title>
          <source>Methods in Ecology and Evolution</source>
          <volume>14</volume>
          <issue>11</issue>
          <fpage>2738</fpage>
          <lpage>2748</lpage>
          <uri>https://besjournals.onlinelibrary.wiley.com/doi/10.1111/2041-210X.14213</uri>
          <pub-id pub-id-type="doi">10.1111/2041-210X.14213</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423651">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Dunn</surname>
              <given-names>Regan E.</given-names>
            </name>
            <name name-style="western">
              <surname>Strömberg</surname>
              <given-names>Caroline A. E.</given-names>
            </name>
            <name name-style="western">
              <surname>Madden</surname>
              <given-names>Richard H.</given-names>
            </name>
            <name name-style="western">
              <surname>Kohn</surname>
              <given-names>Matthew J.</given-names>
            </name>
            <name name-style="western">
              <surname>Carlini</surname>
              <given-names>Alfredo A.</given-names>
            </name>
          </person-group>
          <year>2015</year>
          <article-title>Linked canopy, climate, and faunal change in the Cenozoic of Patagonia</article-title>
          <source>Science</source>
          <volume>347</volume>
          <issue>6219</issue>
          <fpage>258</fpage>
          <lpage>261</lpage>
          <uri>https://www.science.org/doi/10.1126/science.1260947</uri>
          <pub-id pub-id-type="doi">10.1126/science.1260947</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423608">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Eronen</surname>
              <given-names>Jussi T.</given-names>
            </name>
            <name name-style="western">
              <surname>Puolamäki</surname>
              <given-names>K.</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>L.</given-names>
            </name>
            <name name-style="western">
              <surname>Lintulaakso</surname>
              <given-names>K.</given-names>
            </name>
            <name name-style="western">
              <surname>Damuth</surname>
              <given-names>John</given-names>
            </name>
            <name name-style="western">
              <surname>Janis</surname>
              <given-names>C.</given-names>
            </name>
            <name name-style="western">
              <surname>Fortelius</surname>
            </name>
          </person-group>
          <year>2010</year>
          <article-title>Precipitation and large herbivorous mammals II: application to fossil data</article-title>
          <source>Evolutionary Ecology Research</source>
          <volume>12</volume>
          <fpage>235</fpage>
          <lpage>248</lpage>
        </element-citation>
      </ref>
      <ref id="B13423682">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Fortelius</surname>
              <given-names>M</given-names>
            </name>
            <name name-style="western">
              <surname>Eronen</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Jernvall</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Liu</surname>
              <given-names>L P</given-names>
            </name>
            <name name-style="western">
              <surname>Pushkina</surname>
              <given-names>D</given-names>
            </name>
            <name name-style="western">
              <surname>Rinne</surname>
              <given-names>J</given-names>
            </name>
            <name name-style="western">
              <surname>Tesakov</surname>
              <given-names>A</given-names>
            </name>
            <name name-style="western">
              <surname>Vislobokova</surname>
              <given-names>I</given-names>
            </name>
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>Z Q</given-names>
            </name>
            <name name-style="western">
              <surname>Zhou</surname>
              <given-names>L P</given-names>
            </name>
          </person-group>
          <year>2002</year>
          <article-title>Fossil mammals resolve regional patterns of Eurasian climate change over 20 million years</article-title>
          <source>Evolutionary Ecology Research</source>
          <volume>4</volume>
          <issue>4</issue>
          <fpage>1005</fpage>
          <lpage>1016</lpage>
        </element-citation>
      </ref>
      <ref id="B13423511">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Grenié</surname>
              <given-names>Matthias</given-names>
            </name>
            <name name-style="western">
              <surname>Gruson</surname>
              <given-names>Hugo</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>fundiversity: a modular R package to compute functional diversity indices</article-title>
          <source>Ecography</source>
          <volume>2023</volume>
          <issue>3</issue>
          <uri>https://onlinelibrary.wiley.com/doi/abs/10.1111/ecog.06585</uri>
          <pub-id pub-id-type="doi">10.1111/ecog.06585</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423669">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Head</surname>
              <given-names>Jason J.</given-names>
            </name>
            <name name-style="western">
              <surname>Bloch</surname>
              <given-names>Jonathan I.</given-names>
            </name>
            <name name-style="western">
              <surname>Hastings</surname>
              <given-names>Alexander K.</given-names>
            </name>
            <name name-style="western">
              <surname>Bourque</surname>
              <given-names>Jason R.</given-names>
            </name>
            <name name-style="western">
              <surname>Cadena</surname>
              <given-names>Edwin A.</given-names>
            </name>
            <name name-style="western">
              <surname>Herrera</surname>
              <given-names>Fabiany A.</given-names>
            </name>
            <name name-style="western">
              <surname>Polly</surname>
              <given-names>P. David</given-names>
            </name>
            <name name-style="western">
              <surname>Jaramillo</surname>
              <given-names>Carlos A.</given-names>
            </name>
          </person-group>
          <year>2009</year>
          <article-title>Giant boid snake from the Palaeocene neotropics reveals hotter past equatorial temperatures</article-title>
          <source>Nature</source>
          <volume>457</volume>
          <issue>7230</issue>
          <fpage>715</fpage>
          <lpage>717</lpage>
          <uri>https://www.nature.com/articles/nature07671</uri>
          <pub-id pub-id-type="doi">10.1038/nature07671</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423620">
        <element-citation publication-type="other">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>IUCN</surname>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>The IUCN Red List of Threatened Species</article-title>
          <uri>https://www.iucnredlist.org</uri>
        </element-citation>
      </ref>
      <ref id="B13423590">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Jackson</surname>
              <given-names>Jeremy B. C.</given-names>
            </name>
            <name name-style="western">
              <surname>Erwin</surname>
              <given-names>Douglas H.</given-names>
            </name>
          </person-group>
          <year>2006</year>
          <article-title>What can we learn about ecology and evolution from the fossil record?</article-title>
          <source>Trends in Ecology &amp; Evolution</source>
          <volume>21</volume>
          <issue>6</issue>
          <fpage>322</fpage>
          <lpage>328</lpage>
          <uri>https://linkinghub.elsevier.com/retrieve/pii/S0169534706001042</uri>
          <pub-id pub-id-type="doi">10.1016/j.tree.2006.03.017</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423697">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Janis</surname>
              <given-names>C. M.</given-names>
            </name>
          </person-group>
          <year>1988</year>
          <article-title>An estimation of tooth volume and hypsodonty indices in ungulate mammals, and the correlation of these factors with dietary preferences</article-title>
          <source>Mémoires du Museum National d'Histoire Naturelle</source>
          <fpage>367</fpage>
          <lpage>387</lpage>
          <uri>https://www.scienceopen.com/document?vid=bf318866-61a1-4ded-ae94-8de022262c6b</uri>
        </element-citation>
      </ref>
      <ref id="B13423599">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Koch</surname>
              <given-names>Paul L.</given-names>
            </name>
          </person-group>
          <year>1998</year>
          <article-title>Isotopic reconstruction of the past continental environments</article-title>
          <source>Annual Review of Earth and Planetary Sciences</source>
          <volume>26</volume>
          <issue>Volume 26, 1998</issue>
          <fpage>573</fpage>
          <lpage>613</lpage>
          <uri>https://www.annualreviews.org/content/journals/10.1146/annurev.earth.26.1.573</uri>
          <pub-id pub-id-type="doi">10.1146/annurev.earth.26.1.573</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423467">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lam</surname>
              <given-names>Olee Hoi Ying</given-names>
            </name>
            <name name-style="western">
              <surname>Kattge</surname>
              <given-names>Jens</given-names>
            </name>
            <name name-style="western">
              <surname>Tautenhahn</surname>
              <given-names>Susanne</given-names>
            </name>
            <name name-style="western">
              <surname>Boenisch</surname>
              <given-names>Gerhard</given-names>
            </name>
            <name name-style="western">
              <surname>Kovach</surname>
              <given-names>Kyle R.</given-names>
            </name>
            <name name-style="western">
              <surname>Townsend</surname>
              <given-names>Philip A.</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>‘rtry’: An R package to support plant trait data preprocessing</article-title>
          <source>Ecology and Evolution</source>
          <volume>14</volume>
          <issue>5</issue>
          <uri>https://onlinelibrary.wiley.com/doi/10.1002/ece3.11292</uri>
          <pub-id pub-id-type="doi">10.1002/ece3.11292</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423344">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lauer</surname>
              <given-names>Daniel A.</given-names>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
            <name name-style="western">
              <surname>Short</surname>
              <given-names>Rachel A.</given-names>
            </name>
            <name name-style="western">
              <surname>Manthi</surname>
              <given-names>Fredrick K.</given-names>
            </name>
            <name name-style="western">
              <surname>Müller</surname>
              <given-names>Johannes</given-names>
            </name>
            <name name-style="western">
              <surname>Head</surname>
              <given-names>Jason J.</given-names>
            </name>
            <name name-style="western">
              <surname>McGuire</surname>
              <given-names>Jenny L.</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>Disruption of trait-environment relationships in African megafauna occurred in the middle Pleistocene</article-title>
          <source>Nature Communications</source>
          <volume>14</volume>
          <issue>1</issue>
          <uri>https://www.nature.com/articles/s41467-023-39480-8</uri>
          <pub-id pub-id-type="doi">10.1038/s41467-023-39480-8</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423331">
        <element-citation publication-type="chapter">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
            <name name-style="western">
              <surname>Head</surname>
              <given-names>Jason</given-names>
            </name>
            <name name-style="western">
              <surname>Polly</surname>
              <given-names>Paul</given-names>
            </name>
          </person-group>
          <year>2012</year>
          <chapter-title>The ecology of morphology: The ecometrics of locomotion and macroenvironment in North American snakes</chapter-title>
          <person-group person-group-type="editor">
            <name name-style="western">
              <surname>Louys</surname>
              <given-names>Julien</given-names>
            </name>
          </person-group>
          <source>Paleontology in Ecology and Conservation</source>
          <isbn>978-3-642-25037-8</isbn>
          <pub-id pub-id-type="doi">10.1007/978-3-642-25038-5_7</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423478">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Magneville</surname>
              <given-names>Camille</given-names>
            </name>
            <name name-style="western">
              <surname>Loiseau</surname>
              <given-names>Nicolas</given-names>
            </name>
            <name name-style="western">
              <surname>Albouy</surname>
              <given-names>Camille</given-names>
            </name>
            <name name-style="western">
              <surname>Casajus</surname>
              <given-names>Nicolas</given-names>
            </name>
            <name name-style="western">
              <surname>Claverie</surname>
              <given-names>Thomas</given-names>
            </name>
            <name name-style="western">
              <surname>Escalas</surname>
              <given-names>Arthur</given-names>
            </name>
            <name name-style="western">
              <surname>Leprieur</surname>
              <given-names>Fabien</given-names>
            </name>
            <name name-style="western">
              <surname>Maire</surname>
              <given-names>Eva</given-names>
            </name>
            <name name-style="western">
              <surname>Mouillot</surname>
              <given-names>David</given-names>
            </name>
            <name name-style="western">
              <surname>Villéger</surname>
              <given-names>Sébastien</given-names>
            </name>
          </person-group>
          <year>2022</year>
          <article-title>mFD: an R package to compute and illustrate the multiple facets of functional diversity</article-title>
          <source>Ecography</source>
          <volume>2022</volume>
          <issue>1</issue>
          <uri>https://onlinelibrary.wiley.com/doi/10.1111/ecog.05904</uri>
          <pub-id pub-id-type="doi">10.1111/ecog.05904</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423529">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>McGuire</surname>
              <given-names>Jenny L.</given-names>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
            <name name-style="western">
              <surname>Díaz</surname>
              <given-names>Sandra</given-names>
            </name>
            <name name-style="western">
              <surname>Stenseth</surname>
              <given-names>Nils Chr.</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>The past as a lens for biodiversity conservation on a dynamically changing planet</article-title>
          <source>Proceedings of the National Academy of Sciences</source>
          <volume>120</volume>
          <issue>7</issue>
          <uri>https://pnas.org/doi/10.1073/pnas.2201950120</uri>
          <pub-id pub-id-type="doi">10.1073/pnas.2201950120</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423411">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Parker</surname>
              <given-names>Abigail K.</given-names>
            </name>
            <name name-style="western">
              <surname>Müller</surname>
              <given-names>Johannes</given-names>
            </name>
            <name name-style="western">
              <surname>Boisserie</surname>
              <given-names>Jean-Renaud</given-names>
            </name>
            <name name-style="western">
              <surname>Head</surname>
              <given-names>Jason J.</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>The utility of body size as a functional trait to link the past and present in a diverse reptile clade</article-title>
          <source>Proceedings of the National Academy of Sciences</source>
          <volume>120</volume>
          <issue>7</issue>
          <uri>https://pnas.org/doi/10.1073/pnas.2201948119</uri>
          <pub-id pub-id-type="doi">10.1073/pnas.2201948119</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423520">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pavoine</surname>
              <given-names>Sandrine</given-names>
            </name>
          </person-group>
          <year>2020</year>
          <article-title>adiv: An r package to analyse biodiversity in ecology</article-title>
          <source>Methods in Ecology and Evolution</source>
          <volume>11</volume>
          <issue>9</issue>
          <fpage>1106</fpage>
          <lpage>1112</lpage>
          <uri>https://onlinelibrary.wiley.com/doi/abs/10.1111/2041-210X.13430</uri>
          <pub-id pub-id-type="doi">10.1111/2041-210X.13430</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423568">
        <element-citation publication-type="other">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Pedersen</surname>
              <given-names>Thomas Lin</given-names>
            </name>
          </person-group>
          <year>2019</year>
          <article-title>patchwork: The composer of plots</article-title>
          <comment>Institution: Comprehensive R Archive Network Pages: 1.3.0</comment>
          <uri>https://CRAN.R-project.org/package=patchwork</uri>
          <pub-id pub-id-type="doi">10.32614/CRAN.package.patchwork</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423661">
        <element-citation publication-type="other">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Peppe</surname>
              <given-names>Daniel J.</given-names>
            </name>
            <name name-style="western">
              <surname>Baumgartner</surname>
              <given-names>Aly</given-names>
            </name>
            <name name-style="western">
              <surname>Flynn</surname>
              <given-names>Andrew G.</given-names>
            </name>
            <name name-style="western">
              <surname>Blonder</surname>
              <given-names>Benjamin</given-names>
            </name>
          </person-group>
          <year>2017</year>
          <article-title>Reconstructing paleoclimate and paleoecology using fossil leaves</article-title>
          <uri>https://osf.io/stzuc</uri>
          <pub-id pub-id-type="doi">10.31233/osf.io/stzuc</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423365">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Polly</surname>
            </name>
            <name name-style="western">
              <surname>Eronen</surname>
              <given-names>Jussi T.</given-names>
            </name>
            <name name-style="western">
              <surname>Fred</surname>
              <given-names>Marianne</given-names>
            </name>
            <name name-style="western">
              <surname>Dietl</surname>
              <given-names>Gregory P.</given-names>
            </name>
            <name name-style="western">
              <surname>Mosbrugger</surname>
              <given-names>Volker</given-names>
            </name>
            <name name-style="western">
              <surname>Scheidegger</surname>
              <given-names>Christoph</given-names>
            </name>
            <name name-style="western">
              <surname>Frank</surname>
              <given-names>David C.</given-names>
            </name>
            <name name-style="western">
              <surname>Damuth</surname>
              <given-names>John</given-names>
            </name>
            <name name-style="western">
              <surname>Stenseth</surname>
              <given-names>Nils C.</given-names>
            </name>
            <name name-style="western">
              <surname>Fortelius</surname>
              <given-names>Mikael</given-names>
            </name>
          </person-group>
          <year>2011</year>
          <article-title>History matters: ecometrics and integrative climate change biology</article-title>
          <source>Proceedings of the Royal Society B: Biological Sciences</source>
          <uri>https://royalsocietypublishing.org/doi/10.1098/rspb.2010.2233</uri>
          <pub-id pub-id-type="doi">10.1098/rspb.2010.2233</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423356">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Polly</surname>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
            <name name-style="western">
              <surname>Eronen</surname>
              <given-names>Jussi T.</given-names>
            </name>
            <name name-style="western">
              <surname>Schnitzler</surname>
              <given-names>Jan</given-names>
            </name>
          </person-group>
          <year>2016</year>
          <article-title>Processes of ecometric patterning: modelling functional traits, environments, and clade dynamics in deep time</article-title>
          <source>Biological Journal of the Linnean Society</source>
          <volume>118</volume>
          <issue>1</issue>
          <fpage>39</fpage>
          <lpage>63</lpage>
          <uri>https://onlinelibrary.wiley.com/doi/abs/10.1111/bij.12716</uri>
          <pub-id pub-id-type="doi">10.1111/bij.12716</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423538">
        <element-citation publication-type="chapter">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Polly</surname>
              <given-names>P. David</given-names>
            </name>
          </person-group>
          <year>2010</year>
          <chapter-title>Tiptoeing through the trophics: geographic variation in carnivoran locomotor ecomorphology in relation to environment</chapter-title>
          <person-group person-group-type="editor">
            <name name-style="western">
              <surname>Goswami</surname>
              <given-names>Anjali</given-names>
            </name>
            <name name-style="western">
              <surname>Friscia</surname>
              <given-names>Anthony</given-names>
            </name>
          </person-group>
          <source>Carnivoran Evolution</source>
          <publisher-name>Cambridge University Press</publisher-name>
          <uri>https://www.cambridge.org/core/product/identifier/CBO9781139193436A021/type/book_part</uri>
          <isbn>978-0-521-51529-0 978-0-521-73586-5 978-1-139-19343-6</isbn>
          <pub-id pub-id-type="doi">10.1017/CBO9781139193436.014</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423722">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Polly</surname>
              <given-names>P. David</given-names>
            </name>
            <name name-style="western">
              <surname>Head</surname>
              <given-names>Jason J.</given-names>
            </name>
          </person-group>
          <year>2015</year>
          <article-title>Measuring earth-life transitions: Ecometric analysis of functional traits from Late Cenozoic Vertebrates</article-title>
          <source>The Paleontological Society Papers</source>
          <volume>21</volume>
          <fpage>21</fpage>
          <lpage>46</lpage>
          <pub-id pub-id-type="doi">10.1017/S1089332600002953</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423429">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Schap</surname>
              <given-names>Julia A.</given-names>
            </name>
            <name name-style="western">
              <surname>McGuire</surname>
              <given-names>Jenny L.</given-names>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
            <name name-style="western">
              <surname>Manthi</surname>
              <given-names>Fredrick K.</given-names>
            </name>
            <name name-style="western">
              <surname>Short</surname>
              <given-names>Rachel A.</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>Ecometric models of small mammal hypsodonty can estimate paleoprecipitation across eastern Africa</article-title>
          <source>Palaeogeography, Palaeoclimatology, Palaeoecology</source>
          <volume>643</volume>
          <uri>https://www.sciencedirect.com/science/article/pii/S0031018224001706</uri>
          <pub-id pub-id-type="doi">10.1016/j.palaeo.2024.112181</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423559">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Scott</surname>
              <given-names>David W.</given-names>
            </name>
          </person-group>
          <year>1979</year>
          <article-title>On optimal and data-based histograms</article-title>
          <source>Biometrika</source>
          <volume>66</volume>
          <issue>3</issue>
          <fpage>605</fpage>
          <lpage>610</lpage>
          <uri>https://academic.oup.com/biomet/article-lookup/doi/10.1093/biomet/66.3.605</uri>
          <pub-id pub-id-type="doi">10.1093/biomet/66.3.605</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423420">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Short</surname>
              <given-names>Rachel A.</given-names>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
          </person-group>
          <year>2021</year>
          <article-title>Geography of artiodactyl locomotor morphology as an environmental predictor</article-title>
          <source>Diversity and Distributions</source>
          <volume>27</volume>
          <issue>9</issue>
          <fpage>1818</fpage>
          <lpage>1831</lpage>
          <uri>https://onlinelibrary.wiley.com/doi/abs/10.1111/ddi.13371</uri>
          <pub-id pub-id-type="doi">10.1111/ddi.13371</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423393">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Short</surname>
              <given-names>Rachel A.</given-names>
            </name>
            <name name-style="western">
              <surname>Pinson</surname>
              <given-names>Katherine</given-names>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
          </person-group>
          <year>2021</year>
          <article-title>Comparison of environmental inference approaches for ecometric analyses: Using hypsodonty to estimate precipitation</article-title>
          <source>Ecology and Evolution</source>
          <volume>11</volume>
          <issue>1</issue>
          <fpage>587</fpage>
          <lpage>598</lpage>
          <uri>https://onlinelibrary.wiley.com/doi/abs/10.1002/ece3.7081</uri>
          <pub-id pub-id-type="doi">10.1002/ece3.7081</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423402">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Short</surname>
              <given-names>Rachel A.</given-names>
            </name>
            <name name-style="western">
              <surname>McGuire</surname>
              <given-names>Jenny L.</given-names>
            </name>
            <name name-style="western">
              <surname>Polly</surname>
              <given-names>P. David</given-names>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
          </person-group>
          <year>2023</year>
          <article-title>Trophically integrated ecometric models as tools for demonstrating spatial and temporal functional changes in mammal communities</article-title>
          <source>Proceedings of the National Academy of Sciences</source>
          <volume>120</volume>
          <issue>7</issue>
          <uri>https://pnas.org/doi/10.1073/pnas.2201947120</uri>
          <pub-id pub-id-type="doi">10.1073/pnas.2201947120</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423316">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Siciliano‐Martina</surname>
              <given-names>Leila</given-names>
            </name>
            <name name-style="western">
              <surname>McGuire</surname>
              <given-names>Jenny L.</given-names>
            </name>
            <name name-style="western">
              <surname>Hurtado‐Materon</surname>
              <given-names>Maria A.</given-names>
            </name>
            <name name-style="western">
              <surname>Short</surname>
              <given-names>Rachel A.</given-names>
            </name>
            <name name-style="western">
              <surname>Lauer</surname>
              <given-names>Daniel A.</given-names>
            </name>
            <name name-style="western">
              <surname>Schap</surname>
              <given-names>Julia A.</given-names>
            </name>
            <name name-style="western">
              <surname>Müller</surname>
              <given-names>Johannes</given-names>
            </name>
            <name name-style="western">
              <surname>Manthi</surname>
              <given-names>Fredrick K.</given-names>
            </name>
            <name name-style="western">
              <surname>Head</surname>
              <given-names>Jason J.</given-names>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>Ecometrics demonstrates that the functional dental traits of carnivoran communities are filtered by climate</article-title>
          <source>Ecology and Evolution</source>
          <volume>14</volume>
          <issue>10</issue>
          <uri>https://onlinelibrary.wiley.com/doi/10.1002/ece3.70214</uri>
          <pub-id pub-id-type="doi">10.1002/ece3.70214</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423637">
        <element-citation publication-type="chapter">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Vermillion</surname>
              <given-names>W. A.</given-names>
            </name>
            <name name-style="western">
              <surname>Polly</surname>
              <given-names>P. David</given-names>
            </name>
            <name name-style="western">
              <surname>Head</surname>
              <given-names>Jason J.</given-names>
            </name>
            <name name-style="western">
              <surname>Eronen</surname>
              <given-names>Jussi T.</given-names>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
          </person-group>
          <year>2018</year>
          <chapter-title>Ecometrics: A trait-based approach to paleoclimate and paleoenvironmental reconstruction</chapter-title>
          <person-group person-group-type="editor">
            <name name-style="western">
              <surname>Croft</surname>
              <given-names>Darin A.</given-names>
            </name>
            <name name-style="western">
              <surname>Su</surname>
              <given-names>Denise F.</given-names>
            </name>
            <name name-style="western">
              <surname>Simpson</surname>
              <given-names>Scott W.</given-names>
            </name>
          </person-group>
          <source>Methods in Paleoecology: Reconstructing Cenozoic Terrestrial Environments and Ecological Communities</source>
          <publisher-name>Springer Cham</publisher-name>
          <uri>http://link.springer.com/10.1007/978-3-319-94265-0</uri>
          <isbn>978-3-319-94264-3</isbn>
          <pub-id pub-id-type="doi">10.1007/978-3-319-94265-0_17</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423576">
        <element-citation publication-type="other">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wickham</surname>
              <given-names>Hadley</given-names>
            </name>
            <name name-style="western">
              <surname>Chang</surname>
              <given-names>Winston</given-names>
            </name>
            <name name-style="western">
              <surname>Henry</surname>
              <given-names>Lionel</given-names>
            </name>
            <name name-style="western">
              <surname>Pedersen</surname>
              <given-names>Thomas Lin</given-names>
            </name>
            <name name-style="western">
              <surname>Takahashi</surname>
              <given-names>Kohske</given-names>
            </name>
            <name name-style="western">
              <surname>Wilke</surname>
              <given-names>Claus</given-names>
            </name>
            <name name-style="western">
              <surname>Woo</surname>
              <given-names>Kara</given-names>
            </name>
            <name name-style="western">
              <surname>Yutani</surname>
              <given-names>Hiroaki</given-names>
            </name>
            <name name-style="western">
              <surname>Dunnington</surname>
              <given-names>Dewey</given-names>
            </name>
            <name name-style="western">
              <surname>Van Den Brand</surname>
              <given-names>Teun</given-names>
            </name>
          </person-group>
          <year>2007</year>
          <article-title>ggplot2: Create elegant data visualisations using the grammar of graphics</article-title>
          <comment>Institution: Comprehensive R Archive Network Pages: 3.5.2</comment>
          <uri>https://CRAN.R-project.org/package=ggplot2</uri>
          <pub-id pub-id-type="doi">10.32614/CRAN.package.ggplot2</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423439">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Wilson</surname>
              <given-names>Oscar E.</given-names>
            </name>
            <name name-style="western">
              <surname>Sánchez</surname>
              <given-names>Rodolfo</given-names>
            </name>
            <name name-style="western">
              <surname>Chávez-Aponte</surname>
              <given-names>Edwin</given-names>
            </name>
            <name name-style="western">
              <surname>Carrillo-Briceño</surname>
              <given-names>Jorge D.</given-names>
            </name>
            <name name-style="western">
              <surname>Saarinen</surname>
              <given-names>Juha</given-names>
            </name>
          </person-group>
          <year>2024</year>
          <article-title>Application of herbivore ecometrics to reconstruct Neogene terrestrial palaeoenvironments in Falcón, Venezuela</article-title>
          <source>Palaeogeography, Palaeoclimatology, Palaeoecology</source>
          <volume>651</volume>
          <uri>https://www.sciencedirect.com/science/article/pii/S0031018224003869</uri>
          <pub-id pub-id-type="doi">10.1016/j.palaeo.2024.112397</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423502">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Zhang</surname>
              <given-names>Tao</given-names>
            </name>
            <name name-style="western">
              <surname>Russell</surname>
              <given-names>Matthew B.</given-names>
            </name>
            <name name-style="western">
              <surname>Domke</surname>
              <given-names>Grant M.</given-names>
            </name>
          </person-group>
          <year>2021</year>
          <article-title>FEEr: An R package for calculating functional extension and evenness index</article-title>
          <source>Ecological Indicators</source>
          <volume>133</volume>
          <uri>https://www.sciencedirect.com/science/article/pii/S1470160X2101030X</uri>
          <pub-id pub-id-type="doi">10.1016/j.ecolind.2021.108365</pub-id>
        </element-citation>
      </ref>
      <ref id="B13423628">
        <element-citation publication-type="article">
          <person-group person-group-type="author">
            <name name-style="western">
              <surname>Žliobaitė</surname>
              <given-names>Indrė</given-names>
            </name>
            <name name-style="western">
              <surname>Lawing</surname>
              <given-names>A. Michelle</given-names>
            </name>
          </person-group>
          <year>2025</year>
          <article-title>Trait-based approaches to paleoenvironmental reconstructions: What is in the community-weighted trait mean?</article-title>
          <source>Palaeogeography, Palaeoclimatology, Palaeoecology</source>
          <volume>672</volume>
          <uri>https://linkinghub.elsevier.com/retrieve/pii/S0031018225002676</uri>
          <pub-id pub-id-type="doi">10.1016/j.palaeo.2025.112982</pub-id>
        </element-citation>
      </ref>
    </ref-list>
  </back>
  <floats-group>
    <fig id="F13423706" position="float" orientation="portrait">
      <object-id content-type="arpha">E59B179B-9E04-5394-B2A4-5FB487D3566A</object-id>
      <object-id content-type="doi">10.3897/BDJ.13.e168221.figure1</object-id>
      <label>Figure 1.</label>
      <caption>
        <p>Workflow of the <italic>commecometrics</italic> R package. The package implements a modular pipeline to model and reconstruct trait–environment relationships. Green boxes represent user-provided inputs, including modern and fossil species-level trait data, species distributions and environmental sampling points. Red boxes indicate outputs generated by package functions. Dashed lines represent optional steps. Community-level trait summaries (e.g. mean, standard deviation) are calculated using <italic>summarize_traits_by_point()</italic> and can be modelled against environmental variables using <italic>ecometric_model()</italic> or <italic>ecometric_model_qual()</italic> for continuous or categorical traits, respectively. Model performance can be assessed with sensitivity analyses and trait–environment patterns can be visualised using ecometric space plots. Finally, ecometric models can be applied to fossil trait data to reconstruct past environmental conditions.</p>
      </caption>
      <graphic xlink:href="bdj-13-e168221-g001.png" position="float" id="oo_1419475.png" orientation="portrait" xlink:type="simple">
        <uri content-type="original_file">https://binary.pensoft.net/fig/1419475</uri>
      </graphic>
    </fig>
    <fig id="F13423708" position="float" orientation="portrait">
      <object-id content-type="arpha">91AA078C-0773-54D4-B9F4-BE91D2D86C94</object-id>
      <object-id content-type="doi">10.3897/BDJ.13.e168221.figure3</object-id>
      <label>Figure 2.</label>
      <caption>
        <p>Interactive map output from the <italic>inspect_point_species()</italic> function, displaying species composition and associated metrics for each sampling point. Pop-up windows provide information per point, including species identity, summary trait metrics, species richness, richness based on trait availability and the value of an environmental variable. Point status is colour-coded: blue indicates valid points (≥ 3 species) and red indicates non-valid points (&lt; 3 species) based on the species richness threshold.</p>
      </caption>
      <graphic xlink:href="bdj-13-e168221-g002.png" position="float" id="oo_1390516.png" orientation="portrait" xlink:type="simple">
        <uri content-type="original_file">https://binary.pensoft.net/fig/1390516</uri>
      </graphic>
    </fig>
    <fig id="F13423711" position="float" orientation="portrait">
      <object-id content-type="arpha">F940C37D-174E-56E8-BE6E-6580535055F8</object-id>
      <object-id content-type="doi">10.3897/BDJ.13.e168221.figure2</object-id>
      <label>Figure 3.</label>
      <caption>
        <p>Predicted ecometric space for vegetation categories. Each grid cell represents a bin in the trait space defined by the mean and standard deviation (SD) of the RBL, summarised at the community level. Colours indicate the most probable vegetation category predicted by the ecometric model. Black and red outlines mark fossil and modern trait bins, respectively, allowing direct comparison between past and present community trait compositions.</p>
      </caption>
      <graphic xlink:href="bdj-13-e168221-g003.png" position="float" id="oo_1390518.png" orientation="portrait" xlink:type="simple">
        <uri content-type="original_file">https://binary.pensoft.net/fig/1390518</uri>
      </graphic>
    </fig>
    <fig id="F13423713" position="float" orientation="portrait">
      <object-id content-type="arpha">B7583CD9-1AFD-532F-A026-2FF2628575D3</object-id>
      <object-id content-type="doi">10.3897/BDJ.13.e168221.figure1</object-id>
      <label>Figure 4.</label>
      <caption>
        <p>Probability maps for each vegetation category across ecometric trait space. Each panel shows the probability that a given trait bin (defined by community-level mean and standard deviation of RBL corresponds to a specific vegetation category: arctic, deciduous, desert, evergreen or grassland. Warmer colours indicate higher probabilities, while bins with zero probability are rendered transparent. Red outlines mark the trait bins of fossil communities and black outlines indicate their nearest modern analogues in trait space</p>
      </caption>
      <graphic xlink:href="bdj-13-e168221-g004.png" position="float" id="oo_1390519.png" orientation="portrait" xlink:type="simple">
        <uri content-type="original_file">https://binary.pensoft.net/fig/1390519</uri>
      </graphic>
    </fig>
    <table-wrap id="T13423710" position="float" orientation="portrait">
      <label>Table 1.</label>
      <caption>
        <p>Functions included in the R package commecometrics, with brief descriptions of their purpose. For more detailed information, consult the package manual or use the help documentation for individual functions.</p>
      </caption>
      <table rules="all" border="1">
        <tbody>
          <tr>
            <td rowspan="1" colspan="1">
              <bold>Function name</bold>
            </td>
            <td rowspan="1" colspan="1">
              <bold>Description</bold>
            </td>
          </tr>
          <tr>
            <td rowspan="1" colspan="2">
              <bold>Functions for general community analysis</bold>
            </td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">summarize_traits_by_point()</td>
            <td rowspan="1" colspan="1">Provides two trait-based metrics for each geographic point.</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">inspect_point_species()</td>
            <td rowspan="1" colspan="1">Creates an interactive map to verify species overlap and information related to selected points.</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">optimal_bins()</td>
            <td rowspan="1" colspan="1">Calculates the optimal number of bins for a numeric vector based on Scott's rule.</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="2">
              <bold>Functions exclusive to ecometric analysis</bold>
            </td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">ecometric_model() and ecometric_model_qual()</td>
            <td rowspan="1" colspan="1">Builds an ecometric trait space for quantitative and qualitative environmental variables.</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">ecometric_space() and ecometric_space_qual()</td>
            <td rowspan="1" colspan="1">Visualises the ecometric space.</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">reconstruct_env() and reconstruct_env_qual()</td>
            <td rowspan="1" colspan="1">Uses fossil community trait summaries to reconstruct past environmental conditions.</td>
          </tr>
          <tr>
            <td rowspan="1" colspan="1">sensitivity_analysis() and sensitivity_analysis_qual()</td>
            <td rowspan="1" colspan="1">Evaluates the performance of ecometric models.</td>
          </tr>
        </tbody>
      </table>
    </table-wrap>
  </floats-group>
</article>
