Description Usage Arguments Value Examples
get_maxent_predict uses the Maxent model to predict species distribution in a given month. The model for a species is determined from a set of environmental or climate layers for a set of grid cells in a landscape, together with a set of sample locations where the species has been observed. The computed model is a probability distribution (indicating the level of suitability for species' living) over all the grid cells.
1 | get_maxent_predict(month, species_presence, climate, species_name)
|
month |
an integer representing the month of the year (from 1 to 12) |
species_presence |
a dataframe containing longitudes and latitudes of species observation occurred in the given month |
climate |
a raster stack of environmental layers in the corresponding month |
species_name |
a vector containing genus and species name |
raw: raw probability raster
logis: logistic probability raster
1 2 3 4 5 6 7 8 9 10 | # Example: predict mosquito distribution in June
month <- 6
mosquito_month <- mosquito_presence[mosquito_presence$month==month, c("lon", "lat")]
mosquito_month <- subset(mosquito_month, !is.na(lon) & !is.na(lat))
mosquito_predictions_6 <- get_maxent_predict(month, mosquito_month, environment_data[[6]], c("aedes", "aegypti"))
par(mfrow=c(1,2))
plot(mosquito_predictions_6$raw)
title("Aedes Aegypti Distribution Raw Predictions")
plot(mosquito_predictions_6$logis)
title("Aedes Aegypti Distribution Logistic Predictions")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.