trafficlight | R Documentation |
Function to perform an automatic validation routine
trafficlight(x, xc, plot = TRUE, ...)
x |
model output which should be tested in magclass format |
xc |
comparison data on which x should be tested (magclass format) |
plot |
TRUE or FALSE. If TRUE, a plot with a visualization of te treffic light is returned. If FALSE, a MAgPIE object with the test result is returned. |
... |
Additional arguments provided to |
The procedure is explained in detail here: https://redmine.pik-potsdam.de/projects/magpie-intern/wiki/Traffic_light_validation
If plot==TRUE
, a ggplot object. If plot==FALSE
, a
matrix with traffic light result (0 = red, 1 = yellow, 2 = green)
Markus Bonsch, Jan Philipp Dietrich, Benjamin Leon Bodirsky
TLevaluate
,TLstatistics
,TLplot
library(magclass)
data("population_magpie")
x <- population_magpie
xc <- x + runif(length(x)[1],0,10^5)
trafficlight(x[,,1], xc)
trafficlight(x[,,1], xc, detailed=FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.