Skip to contents

Generate predictions for species and habitat models and saves the output as JPEG files.

Usage

plot_prediction(
  model_dir = NULL,
  env_file = ".env",
  n_cores = 8L,
  strategy = "multisession"
)

Arguments

model_dir

Character. Path to the model directory containing predictions.

env_file

Character. Path to the environment file containing paths to data sources. Defaults to .env.

n_cores

Integer. Number of CPU cores to use for parallel processing. Default: 8.

strategy

Character. The parallel processing strategy to use. Valid options are "sequential", "multisession" (default), "multicore", and "cluster". See future::plan() and ecokit::set_parallel() for details.

Value

Saves prediction plots as JPEG files in the specified output directory.

Author

Ahmed El-Gabbas