plot,BIOMOD.formated.data,missing-method | R Documentation |
plot
method for BIOMOD.formated.data
object classPlot the spatial distribution of presences, absences and
pseudo-absences among the different potential dataset (calibration,
validation and evaluation). Available only if coordinates were given to
BIOMOD_FormatingData
.
## S4 method for signature 'BIOMOD.formated.data,missing'
plot(
x,
calib.lines = NULL,
plot.type,
plot.output,
PA,
run,
plot.eval,
point.size = 1.5,
do.plot = TRUE
)
x |
a |
calib.lines |
(optional, default |
plot.type |
a |
plot.output |
a |
PA |
(optional, default |
run |
(optional, default |
plot.eval |
(optional, default |
point.size |
a |
do.plot |
(optional, default |
a list
with the data used to generate the plot and a
ggplot2
object
Remi Patin
library(terra)
# Load species occurrences (6 species available)
data(DataSpecies)
head(DataSpecies)
# Select the name of the studied species
myRespName <- 'GuloGulo'
# Get corresponding presence/absence data
myResp <- as.numeric(DataSpecies[, myRespName])
# Get corresponding XY coordinates
myRespXY <- DataSpecies[, c('X_WGS84', 'Y_WGS84')]
# Load environmental variables extracted from BIOCLIM (bio_3, bio_4, bio_7, bio_11 & bio_12)
data(bioclim_current)
myExpl <- terra::rast(bioclim_current)
## ----------------------------------------------------------------------- #
# Format Data with true absences
myBiomodData <- BIOMOD_FormatingData(resp.var = myResp,
expl.var = myExpl,
resp.xy = myRespXY,
resp.name = myRespName)
myBiomodData
plot(myBiomodData)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.