
Positions of the kit fox (blue) and the fennec fox (orange) in the three spaces: their geographical ranges do not overlap, they overlap partly in temperature–precipitation space, and they are separated in the attribute space defined by body mass and the proportion of vertebrates in the diet. The composition follows Vilela's verbal description of Figure 3 in his Methods Blog post; the range outlines and point positions are all schematic, and the kit fox range is drawn too large and does not represent the true distribution. AI-generated schematic.
On October 3, 2026, Vilela and colleagues, 11 authors in all, published a paper in the journal MEE that extends the R package letsR from presence–absence matrices (PAMs) on a geographical grid to a triplet of linked PAMs in geographical, environmental and attribute spaces: geometric descriptors such as centrality, isolation and proximity to the border are computed in one space and then projected into the other two through explicit linking functions. The paper's evidence is a demonstration on the world's terrestrial mammals, not a performance comparison with existing methods.
From a geographical matrix to a triplet of matrices in three spaces
The forerunner of letsR is the R package paper that Vilela and Villalobos published in Methods in Ecology and Evolution (MEE) in 2015. Its core object is the geographical presence–absence matrix: species range polygons or point records are overlaid on a geographical grid, rows are cells, columns are species, and a 1 means the species occurs in that cell. Species richness rasters, range midpoints and species attributes summarized by cell are all derived from this matrix. In a Methods Blog post of October 27, 2026, Vilela recalls that for years the package answered the question of why species richness varies across space, whereas the new paper asks what exactly “space” means here.
The new framework builds three matrices for the same set of species. The cells of the geographical PAM are a latitude–longitude grid. The environmental PAM bins each geographical cell by two environmental variables (mean annual temperature and annual precipitation in the documentation's example), and geographical cells that fall into the same “climate cell” are merged. The cells of the attribute PAM are combinations of bins along two species-attribute axes, and each species falls into the cell that matches its own attribute values. The blog post uses two foxes to illustrate the difference: the kit fox (Vulpes macrotis) of North America and the fennec fox (Vulpes zerda) of North Africa do not overlap geographically, yet they overlap in part in temperature–precipitation space, and in the attribute space defined by body mass and the proportion of vertebrates in the diet they again occupy separate places.
The point of this work is not that two more plots get drawn, but that the three matrices share the same set of species columns and can therefore be converted into one another: a climate cell can be traced back to all the geographical cells that make it up, and an attribute cell can be traced, through the species it contains, back to the geographical cells those species occupy. On this basis the paper's abstract proposes that the design allows a direct test of how constraints in one space affect diversity in the other spaces.
Geometric descriptors and cross-space links
For each cell of the environmental PAM or the attribute PAM, lets.envcells and lets.attrcells compute a set of descriptors. According to the function documentation, centrality is measured as the distance from the cell to the midpoint (frequency-weighted or unweighted), with the result negated so that larger values mean more central. Proximity to the border has three proxies: the distance to the nearest empty cell (a cell with zero richness), the mean distance to a given proportion of the nearest empty cells, and the distance to the boundary of the minimum convex hull. Isolation is the frequency-weighted mean Euclidean distance. Both axes are z-standardized before distances are computed. Environmental cells also come with a frequency (how many geographical cells map to this climate cell), the corresponding geographical area, and a summary of the distribution of pairwise distances among those geographical cells, in other words how widely the same climate is scattered across the map.
The linking functions carry values between spaces. lets.summaryze.cells aggregates cell-level descriptors into species-level values over the cells each species occupies; lets.maplizer, lets.maplizer.env and lets.maplizer.attr then aggregate species-level values into geographical, environmental or attribute cells. Descriptors of environmental cells can also be written straight back onto the geographical raster through the cell correspondence. An example: first compute in environmental space how rare and how isolated a given climate cell is worldwide, write that back onto the map, and you can see which regions sit in rare climates; aggregate by species instead and project into attribute space, and you can see which body-size–diet combinations have more species living in marginal climates. The cross-space example in the package documentation uses range data for tree frogs of the genus Phyllomedusa, with simulated traits as the attribute axes; the documentation notes that these should be replaced when real traits are available.

The letsR PAM triplet: three presence–absence matrices, geographical, environmental and attribute, share the same set of species. Green arrows show descriptors of environmental cells being written back onto the geographical raster through the cell correspondence; purple arrows show aggregation to species via lets.summaryze.cells followed by projection into attribute cells with lets.maplizer.attr; orange arrows show attribute-space descriptors being aggregated to species and then projected back into geography with lets.maplizer. The pathways are compiled from the letsR function documentation and the cross-mapping tutorial. AI-generated schematic.
Improvements over earlier versions and the nature of the evidence
The improvements are mainly at the level of workflow. letsR has long been able to attach environmental raster variables to a geographical PAM and to summarize species attributes by cell, but environmental space and attribute space were not themselves analysable grid objects. Researchers who wanted to compute “how isolated a climate cell is” or “how marginal a position in trait space is” had to write their own binning, distance and back-mapping code, and a new question often meant rewriting it all. The new version turns matrix construction (lets.envpam, lets.attrpam), descriptor calculation, aggregation and projection into one family of lets.* functions whose input and output formats fit together. Vilela says in the blog post that the difficulty was precisely to make such analyses possible without rewriting a computational pipeline for every question; the paper's abstract describes it as lowering the barrier to reproducible, geometry-aware analysis.
As for evidence, the abstract reports a demonstration: taking the world's terrestrial mammals, it maps environmental-space descriptors back into geographical and attribute spaces, showing which climatic regions are common or rare, how isolated they are, and how these properties relate to species richness in each space (the abstract's own wording is that they influence it). The reference list shows that the range data are the terrestrial mammal spatial data of the IUCN Red List, version 2025-1. This is a software and framework paper: going by the abstract and the public documentation, there is no sign of a quantitative comparison with other tools in speed or accuracy, nor of simulation studies testing the statistical properties of the descriptors. The full text of the paper could not be read for this article (the publisher's page refused access), so whether the full text contains further analyses of this kind is uncertain for now.
The version also needs attention: the paper cites letsR 6.1 (Zenodo and CRAN); when this article was checked, the CRAN page showed 6.0 (released March 27, 2026), while the documentation site already listed the cross-space functions and tutorials. Before use, confirm that your local version includes functions such as lets.maplizer.attr and lets.summaryze.cells.
Limits of applicability
- The geometry depends on which two axes are chosen. Environmental and attribute PAMs are currently built on two axes, and the function documentation takes columns 2 and 3 to be the two variables by default. Swap in a different pair of variables and the meaning of centre, border and isolation all change; a “rare climate” is rare only relative to the chosen variables and study region.
- Resolution changes the values.
n_binsdetermines the size of climate cells and trait cells, and the resolution of the geographical grid determines frequencies and areas. Comparing descriptors across studies requires a common resolution or a sensitivity analysis. - Flaws in the input data carry through into the geometry. PAMs come from range polygons or point records, and overprediction in range maps, sampling bias and missing traits all alter the results. Border descriptors depend on empty cells: the documentation states that NA is returned when there are no zero-richness cells or fewer than 3 occupied cells.
- It is not a species distribution model. The framework describes the geometric structure of existing distributions in three spaces; it does not predict the probability of occurrence at unsurveyed sites and cannot replace an SDM.
- Nor is it a tool for causal identification. Cross-space mapping yields patterns of association that are suited to proposing and testing hypotheses; to argue that “environmental constraints cause differences in diversity” still requires experiments, process models or other identification strategies.
The better-suited scenario is one in which reasonably complete range maps and trait tables are already available, the aim is to compare diversity patterns across several spaces in macroecological or macroevolutionary questions, and the whole analysis is meant to be reproducible.
References
-
Vilela, B., Farina, B. M., Dobrovolski, R., Gouveia, S. F., Diniz-Filho, J. A. F., Rangel, T. F., Fristoe, T. S., Calderón del Cid, C., Coelho, M. T. P., Graham, C. H., & Villalobos, F. (2026). Mapping diversity through geographical, environmental and attribute spaces. Methods in Ecology and Evolution. Published online 2026-10-03. https://doi.org/10.1111/2041-210x.70421
-
Vilela, B. (2026-10-27). Rethinking Space: from geographical maps to multidimensional biodiversity with letsR. Methods Blog. https://methodsblog.com/2026/10/27/rethinking-space-from-geographical-maps-to-multidimensional-biodiversity-with-letsr/
-
Vilela, B., & Villalobos, F. (2015). letsR: a new R package for data handling and analysis in macroecology. Methods in Ecology and Evolution, 6(10), 1229–1234. https://doi.org/10.1111/2041-210X.12401
-
letsR documentation site (function reference and tutorials, including Cross-mapping biodiversity metrics across spaces and Mapping species richness in attribute space). https://brunovilela.github.io/letsR/
-
letsR code repository. https://github.com/brunovilela/letsR
-
CRAN: Package letsR. https://CRAN.R-project.org/package=letsR
-
Research Methods · Rituals can be imitated; understanding cannot be faked
-
Information compiled and published by the Scholay academic one-stop platform; report infringement for takedown.
-
Also published on Enter Scholar, a scholars’ community for the intelligent age