score.plot: Score Plot

View source: R/score.plot.R

score.plotR Documentation

Score Plot

Description

This function plots scores of different models rated by selected measures as heatmap.

Usage

score.plot(x, models, measures, title = "Model Comparison")

Arguments

x

matrix of scores (see detail)

models

character; column names of x (depending on x; see details)

measures

character; row names of x (depending on x; see details)

title

character; title of the plot; default: "Model Comparison"

Details

For matrix x, each row contains the scores of one measure and each columns contains the scores belonging to one model.

The brighter the color in the plot, the lower the score is.

Value

ggplot object with score plot of different models rated by selected measures.

Author(s)

David Jobst

Examples

# simulated data
x <- matrix(c(0.5, 0.3, 0.8, 0.21, 1.5, 0.7, 2, 1), byrow = TRUE, ncol = 4)
models <- c("A", "B", "C", "D")
measures <- c("CRPS", "LogS")
title <- ""

# score.plot plot
score.plot(x = x, models = models, measures = measures)
score.plot(x = x, models = models, measures = measures, title = title)


jobstdavid/eppverification documentation built on May 13, 2024, 5:20 p.m.