View source: R/pairwise-comparisons.R
plot_pairwise_comparisons | R Documentation |
Creates a heatmap of the ratios or pvalues from a pairwise comparison between models.
plot_pairwise_comparisons(
comparison_result,
type = c("mean_scores_ratio", "pval")
)
comparison_result |
A data.frame as produced by
|
type |
Character vector of length one that is either "mean_scores_ratio" or "pval". This denotes whether to visualise the ratio or the p-value of the pairwise comparison. Default is "mean_scores_ratio". |
A ggplot object with a heatmap of mean score ratios from pairwise comparisons.
library(ggplot2)
library(magrittr) # pipe operator
scores <- example_quantile %>%
as_forecast_quantile %>%
score()
pairwise <- get_pairwise_comparisons(scores, by = "target_type")
plot_pairwise_comparisons(pairwise, type = "mean_scores_ratio") +
facet_wrap(~target_type)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.