Skip to contents

Plots information from a given object where a plotting object is available.

Usage

# S3 method for class 'DistributionModel'
plot(x, what = "mean", ...)

# S3 method for class 'BiodiversityDatasetCollection'
plot(x, ...)

# S3 method for class 'PredictorDataset'
plot(x, ...)

# S3 method for class 'Engine'
plot(x, ...)

# S3 method for class 'BiodiversityScenario'
plot(x, ...)

Arguments

x

Any object belonging to DistributionModel, BiodiversityDatasetCollection, PredictorDataset or BiodiversityScenario.

what

In case a SpatRaster is supplied, this parameter specifies the layer to be shown (Default: "mean").

...

Further arguments passed on to x$plot.

Value

Graphical output

Details

The plotted outputs vary depending on what object is being plotted. For example for a fitted DistributionModel the output is usually the fitted spatial prediction (Default: 'mean').

Examples

if (FALSE) { # \dontrun{
# Build and train a model
mod <- distribution(background) |>
  add_biodiversity_poipo(species) |>
  add_predictors(predictors) |>
  engine_glmnet() |>
  train()
# Plot the resulting model
plot(mod)
} # }