Skip to contents

ODMAP (Overview, Data, Model, Assessment, Prediction; Zurell et al. 2020) is the standard protocol for reporting species distribution models, required or recommended by several journals. Much of its Data section, and parts of the others, describe exactly the steps this package performs. The function writes those entries from the objects you already have (which tests removed how many records, how M was delimited, how the records were thinned, how the predictors were screened, how the models were evaluated and selected), so that they are reported completely and identically to what was run. The remaining elements (the study, the taxon, the algorithms and their settings) are left empty for you to fill, or supplied through fields.

Usage

odmap_table(
  filter = NULL,
  uncertainty = NULL,
  m = NULL,
  thinning = NULL,
  records = NULL,
  background = NULL,
  variables = NULL,
  predictors = NULL,
  truncation = NULL,
  block_size = NULL,
  folds = NULL,
  evaluation = NULL,
  selection = NULL,
  null_test = NULL,
  fields = list(),
  file = NULL
)

Arguments

filter

An occ_filter from filter_occurrences().

uncertainty

The result of uncertainty_environment().

m

An m_area from delimit_m().

thinning

An env_thinning from thin_environment().

records

The final presence records used for modelling (a data.frame; only their number is reported).

background

Background points from sample_background().

variables

A var_selection from select_variables().

predictors

Names of the predictors finally used.

truncation

A niche_truncation from niche_truncation().

block_size

A block_size from suggest_block_size().

folds

Fold numbers from spatial_folds().

evaluation

An enm_evaluation from evaluate_models() or an enm_cv from evaluate_cv().

selection

An enm_selection from select_models().

null_test

The result of null_model_test().

fields

Named list of your own entries, named by element, e.g. list("Study title" = "...", "Focal Taxon" = "..."). Where an element name occurs in several subsections, write "Subsection: Element", e.g. "Transfer data: Data sources". Your entry replaces the automatic one.

file

Optional path of a CSV file to write.

Value

A data.frame with section, subsection, element, value and filled_by ("preENM", "user" or empty), invisibly if written to a file. The sections, subsections and elements follow ODMAP version 1.0; compare them with the template of the journal you submit to.

Details

Every argument is optional: pass what your workflow used.

Limits. The table is filled only from the objects given: elements preENM cannot know, such as the algorithm and its settings, are left for you, and an automatic entry is only as accurate as the object it comes from.

References

Zurell, D. et al. (2020) A standard protocol for reporting species distribution models. Ecography 43, 1261-1277.

Examples

sim <- simulate_enm_data(seed = 1, n_presence = 150)
m <- delimit_m(sim$presence, link_km = 120, thin_km = 5)
bg <- sample_background(sim$env, 500, seed = 1)
#> Cells available for background: 4800
ev <- evaluate_models(sim$models, sim$presence, sim$absence)
od <- odmap_table(m = m, records = sim$presence, background = bg,
                  evaluation = ev, predictors = names(sim$env),
                  fields = list("Focal Taxon" = "a simulated species"))
od[od$filled_by != "", c("subsection", "element", "value")]
#>                subsection                  element
#> 7             Focal Taxon              Focal Taxon
#> 13      Scale of Analysis                 Boundary
#> 23               Software                 Software
#> 31      Biodiversity data              Sample size
#> 32      Biodiversity data                 Clipping
#> 36      Biodiversity data          Background data
#> 41    Predictor variables      Predictor variables
#> 75 Performance statistics Performance on test data
#>                                                                                                                                                              value
#> 7                                                                                                                                              a simulated species
#> 13                                                                                                                             Accessible area (M) of the species.
#> 23                                                                                                                    R version 4.6.2 (2026-10-29); preENM 2.56.1.
#> 31                                                                                                                        150 presence records used for modelling.
#> 32 Accessible area (M) delimited with preENM::delimit_m, method delaunay, linking distance 120 km; records thinned to 5 km for the delimitation; area 390,427 km2.
#> 36                                                                                              500 background points (preENM::sample_background, method uniform).
#> 41                                                                                                                                                     env1, env2.
#> 75                                                      AUC, MAE, MAEbal, bias, TSS, Boyce for 7 models; ranked by Pareto fronts on AUC = max, MAE = min (preENM).