Learn R Programming

Renext (version 1.0-0)

plot.Rendata: Plot a Rendata object

Description

Plot 'Rendata' datasets with OT and historical data

Usage

plot.Rendata(x,
               textOver = quantile(x$OTdata[, x$info$varName], probs = 0.99),
                 ...)

Arguments

x
Rendata object i.e. a list object as read with the readXML function.
textOver
Mark values of the variable in the OTdata part of x. Values above the textOver value (if any) will be marked with the character version of the block, typically a year
...
further args to be passed to plot function.

Details

The plot shows the main data of the objact x (the OTdata part) as well as historical data MAXdata or OTSdata if any. Different colors are used on the background. This function is not intended to produce nice plots to be printed.

See Also

readXML

Examples

Run this code
library(XML)
## use 'index.xml' file shipped with Renext
dir1 <- system.file("Rendata", package = "Renext")
BrestNew <- readXML(name = "Brest", dir = dir1)
plot.Rendata(BrestNew)
GaronneNew <- readXML(name = "Garonne", dir = dir1)
plot.Rendata(GaronneNew)
test1 <- readXML(name = "test1", dir = dir1)
plot.Rendata(test1)

Run the code above in your browser using DataLab