Plot species and level of invasion predictions as JPEG files using ggplot2
Source: R/mod_plot_prediction.R
plot_prediction.Rd
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()
andecokit::set_parallel()
for details.