Learn R Programming

SDMtune (version 1.3.2)

maxentTh: MaxEnt Thresholds

Description

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

Usage

maxentTh(model)

Value

data.frame with the thresholds.

Arguments

model

SDMmodel object trained using the "Maxent" method.

Author

Sergio Vignali

See Also

maxentVarImp.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab