View source: R/plot_optimization.R
| plot_optimization | R Documentation |
Plots optimization data frames produced by select_spatial_predictors_sequential()
and select_spatial_predictors_recursive().
plot_optimization(
model,
point.color = viridis::viridis(
100,
option = "F",
direction = -1
),
verbose = TRUE
)
model |
A model produced by |
point.color |
Colors of the plotted points. Can be a single color name (e.g. "red4"), a character vector with hexadecimal codes (e.g. "#440154FF" "#21908CFF" "#FDE725FF"), or function generating a palette (e.g. |
verbose |
Logical, if |
The function returns NULL invisibly (without plotting) when:
The method used to fit a model with rf_spatial() is "hengl" (no optimization required)
No spatial predictors were selected during model fitting
The model is non-spatial
A ggplot, or NULL invisibly if no optimization data is available.
Other visualization:
plot_evaluation(),
plot_importance(),
plot_moran(),
plot_residuals_diagnostics(),
plot_response_curves(),
plot_response_surface(),
plot_training_df(),
plot_training_df_moran(),
plot_tuning()
data(plants_rf_spatial)
plot_optimization(plants_rf_spatial)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.