score.plot | R Documentation |
This function plots scores of different models rated by selected measures as heatmap.
score.plot(x, models, measures, title = "Model Comparison")
x |
matrix of scores (see detail) |
models |
character; column names of |
measures |
character; row names of |
title |
character; title of the plot; default: " |
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.
ggplot object with score plot of different models rated by selected measures.
David Jobst
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.