Description Usage Arguments Details Value Author(s) See Also Examples
Function to perform an automatic validation routine
1 2 |
func |
Name of the magpie library function for which validation data shall be obtained. |
... |
Values for arguments that func takes. If an argument is not specified the default value are used if existing. Otherwise an error will occur. The two arguments "file" and "level" can be omitted without causing problems. |
historical |
Determines what kind of data is taken into account. Either historical data (TRUE), projections (FALSE) or both (NULL). |
datasources |
A vector containing the names of the datasets that shall be used for comparison. If NULL (default) all datasets are returned. |
aggregate |
TRUE or FALSE. If TRUE, individual test results are aggregated to one traffic light. If FALSE, individual test results are returned. |
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. |
text_size |
If |
ncol |
Number of columns if plot is split into multiple facets. |
The procedure is explained in detail here: redmine.pik-potsdam.de/projects/magpie-intern/wiki/Traffic_light_validation.
If plot==TRUE
, a ggplot object. If plot==FALSE
, a MAgPIE obkect with the traffic light result (0 = red, 1 = yellow, 2 = green)
Markus Bonsch
evaluate_TLstatistics
,TLstatistics
,plot_TL
1 2 3 4 | ## Not run:
trafficLight(func=emissions,type="co2_c",datasources="FAO",historical=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.