maxentTh: MaxEnt Thresholds

View source: R/maxentTh.R

maxentThR Documentation

MaxEnt Thresholds

Description

Returns the value of the thresholds generated by the MaxEnt software.

Usage

maxentTh(model)

Arguments

model

SDMmodel object trained using the "Maxent" method.

Value

data.frame with the thresholds.

Author(s)

Sergio Vignali

See Also

maxentVarImp.

Examples

# Acquire environmental variables
files <- list.files(path = file.path(system.file(package = "dismo"), "ex"),
                    pattern = "grd",
                    full.names = TRUE)

predictors <- terra::rast(files)

# Prepare presence and background locations
p_coords <- virtualSp$presence
bg_coords <- virtualSp$background

# Create SWD object
data <- prepareSWD(species = "Virtual species",
                   p = p_coords,
                   a = bg_coords,
                   env = predictors,
                   categorical = "biome")

# Train a Maxent model
model <- train(method = "Maxent",
               data = data,
               fc = "l")

maxentTh(model)

SDMtune documentation built on July 9, 2023, 6:03 p.m.