| plot_swrc_metrics | R Documentation |
Creates a bar chart comparing R², RMSE, and MAE across multiple models or configurations.
plot_swrc_metrics(
metrics_df,
model_col = "model",
palette = "Blues",
base_size = 12,
title = NULL
)
metrics_df |
A data frame with columns |
model_col |
Column name for the model identifier (default
|
palette |
RColorBrewer palette (default |
base_size |
Base font size (default |
title |
Plot title (default |
A ggplot object.
m1 <- swrc_metrics(c(0.30, 0.25, 0.20), c(0.28, 0.26, 0.22)) |>
dplyr::mutate(model = "Model 1")
m2 <- swrc_metrics(c(0.30, 0.25, 0.20), c(0.29, 0.24, 0.21)) |>
dplyr::mutate(model = "Model 2")
plot_swrc_metrics(dplyr::bind_rows(m1, m2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.