plot_correlations: Plot correlation between metrics

View source: R/plot.R

plot_correlationsR Documentation

Plot correlation between metrics

Description

Plots a heatmap of correlations between different metrics.

Usage

plot_correlations(correlations)

Arguments

correlations

A data.table of correlations between scores as produced by get_correlations().

Value

A ggplot object showing a coloured matrix of correlations between metrics.

A ggplot object with a visualisation of correlations between metrics

Examples

scores <- score(as_forecast(example_quantile))
correlations <- get_correlations(
 summarise_scores(scores),
 digits = 2
)
plot_correlations(correlations)

epiforecasts/scoringutils documentation built on April 23, 2024, 4:56 p.m.