Package: letsR 6.1

Bruno Vilela

letsR: Data Handling and Analysis in Macroecology

Handling, processing, and analyzing geographic data on species' distributions and environmental variables. Read Vilela & Villalobos (2015) <doi:10.1111/2041-210X.12401> for details.

Authors:Bruno Vilela [aut, cre], Fabricio Villalobos [aut]

letsR_6.1.tar.gz
letsR_6.1.zip(r-4.7)letsR_6.1.zip(r-4.6)letsR_6.1.zip(r-4.5)
letsR_6.1.tgz(r-4.6-any)letsR_6.1.tgz(r-4.5-any)
letsR_6.1.tar.gz(r-4.7-any)letsR_6.1.tar.gz(r-4.6-any)
letsR_6.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION
card.svg |card.png
letsR/json (API)

# Install 'letsR' in R:
install.packages('letsR', repos = c('https://macroecology.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/macroecology/letsr/issues

Pkgdown/docs site:https://brunovilela.github.io

Datasets:
  • IUCN - IUCN evaluation for frogs of the genus Phyllomedusa
  • PAM - PresenceAbsence object for frogs of the genus Phyllomedusa
  • Phyllomedusa - Phyllomedusa
  • prec - Annual Precipitation raster for the world.
  • temp - Mean temperature raster for the world.
  • wrld_simpl - Simplified world country polygons

On CRAN:

Conda:

9.93 score 29 stars 150 scripts 640 downloads 9 mentions 37 exports 14 dependencies

Last updated from:ab886f6e38. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK255
source / vignettesOK283
linux-release-x86_64OK227
macos-release-arm64OK268
macos-oldrel-arm64OK254
windows-develOK216
windows-releaseOK186
windows-oldrelOK215
wasm-releaseOK147

Exports:lets.addpolylets.addvarlets.attrcellslets.attrpamlets.classvarlets.correllets.distmatlets.envcellslets.envpamlets.fieldlets.gridirizerlets.iucncontlets.loadlets.maplizerlets.maplizer.attrlets.maplizer.envlets.midpointlets.overlaplets.pamcroplets.plot.attrcellslets.plot.attrpamlets.plot.envcellslets.plot.envpamlets.presablets.presab.birdslets.presab.gridlets.presab.grid.pointslets.presab.pointslets.rangesizelets.savelets.shFilterlets.subsetPAMlets.subsetPAMattlets.subsetPAMenvlets.summarizerlets.summaryze.cellslets.transf

Dependencies:classclassIntDBIe1071geosphereKernSmoothMASSproxyRcpps2sfterraunitswk

Mapping species richness in attribute space
Overview | Simulating trait data and building the attribute space PAM | Visualizing richness in attribute space | Computing attribute-space descriptors | Summarizing descriptors by species | Linking attribute space to geographic space | References

Last update: 2026-03-27
Started: 2025-10-17

Mapping species richness in environmental space
Loading data | Creating a PAM in environmental space | Visualizing environmental richness | Highlighting a single species | Mapping traits in environmental space | Describing environmental–geographical structure | Summarize descriptors per environmental cell | Plot the descriptors | Diagnosing centrality vs. richness (optional) | References

Last update: 2026-03-27
Started: 2025-07-07

Cross-mapping biodiversity metrics across spaces
Overview | Data and environmental PAM (example with Phyllomedusa) | Environmental descriptors per environmental cell | Attribute-space PAM for Phyllomedusa species | Cross-mapping an environmental metric into geographic and attribute spaces | A. Into geographic space | B. Into attribute space | Cross-mapping attribute metrics back to geography

Last update: 2026-03-25
Started: 2025-10-17

A guide to transform species distributions into a presence absence matrix based on a user-defined grid in R
IUCN shapefiles | Quick start | Using different projections | Other features | Occurrence data (e.g. GBIF) | Using your own grid

Last update: 2026-03-25
Started: 2023-11-15

Adding variables to a PresenceAbsence object
Adding variables in raster format | Adding variables in polygon format

Last update: 2026-03-25
Started: 2023-11-15

Cropping and subseting your presence absence matrix

Last update: 2026-03-25
Started: 2023-11-15

Mapping species traits: community level analysis
Community level analysis

Last update: 2026-03-25
Started: 2023-11-15

How to save and load a PresenceAbsence object

Last update: 2026-03-25
Started: 2023-11-15

Macroecological analysis at the species level
Example 1: Species level test of Rapoport's rule on Phyllomedusa frogs. | Example 2: Extinction risk correlation with temperature

Last update: 2026-03-25
Started: 2023-11-15

Readme and manuals

Help Manual

Help pageTopics
Tools for Data Handling and Analysis in Macroecology.letsR-package letsR
IUCN evaluation for frogs of the genus PhyllomedusaIUCN
Add polygon coverage to a PresenceAbscence objectlets.addpoly
Add variables (in raster format) to a PresenceAbscence objectlets.addvar
Descriptors of position, centrality, and isolation in attribute spacelets.attrcells
Attribute-space Presence–Absence Matrix (attrPAM)lets.attrpam
Frequency distribution of a variable within a species' rangelets.classvar
Compute correlogram based on the Moran's I indexlets.correl
Compute a geographic distance matrixlets.distmat
Environmental descriptors for Presence–Absence in environmental spacelets.envcells
Create a presence–absence matrix in environmental spacelets.envpam
Create species' values based on the species co-occurrence within focal rangeslets.field
Fits a grid into a PresenceAbsence objectlets.gridirizer
Transform IUCN RedList conservation status to continuous valueslets.iucncont
Load a PresenceAbsence objectlets.load
Create a matrix summarizing species' attributes within cells of a PresenceAbsence objectlets.maplizer
Map species-level attributes over the attribute-space gridlets.maplizer.attr
Map species attributes in both environmental and geographic spaceslets.maplizer.env
Compute the midpoint of species' geographic rangeslets.midpoint
Compute pairwise species' geographic overlapslets.overlap
Crop a PresenceAbsence object based on an input shapefilelets.pamcrop
Map AttrPAM descriptor layerslets.plot.attrcells
Plot attrPAM resultslets.plot.attrpam
Map envPAM descriptorslets.plot.envcells
Plot species richness in environmental and geographical spacelets.plot.envpam
Create a presence-absence matrix of species' geographic ranges within a gridlets.presab
Create a presence-absence matrix of species' geographic ranges within a grid for the Birdlife spatial datalets.presab.birds
Create a presence-absence matrix of species' geographic ranges within a user's grid shapefile (beta version)lets.presab.grid
Create a presence-absence matrix based on species' point occurrences within a user's grid shapefile (beta version)lets.presab.grid.points
Create a presence-absence matrix based on species' point occurrenceslets.presab.points
Compute species' geographic range sizeslets.rangesize
Save a PresenceAbsence objectlets.save
Filter species' shapefiles based on its presence, origin, and seasonlets.shFilter
Subset a PresenceAbsence object based on species nameslets.subsetPAM
Subset an attribute PAM by species nameslets.subsetPAMatt
Subset an environmental PAM by species nameslets.subsetPAMenv
Summarize variable(s) values in a presence-absence matrix within species' rangeslets.summarizer
Aggregate cell-wise metrics across occupied cells per specieslets.summaryze.cells
Transform values of a vectorlets.transf
PresenceAbsence object for frogs of the genus PhyllomedusaPAM
PhyllomedusaPhyllomedusa
Plot an object of class PresenceAbsenceplot.PresenceAbsence
Annual Precipitation raster for the world.prec
PresenceAbsence ClassPresenceAbsence PresenceAbsence-class
Print for object of class PresenceAbsenceprint.PresenceAbsence
Print summary for object of class PresenceAbsenceprint.summary.PresenceAbsence
Summary for object of class PresenceAbsencesummary.PresenceAbsence
Mean temperature raster for the world.temp
Simplified world country polygonswrld_simpl