TSPlot {BrailleR}R Documentation

Create a standard time series plot with a few extra elements added to the output object

Description

This function is a wrapper to the standard plott() function in the graphics package. It is tailored to generating a time series plot, and adds detail to the stored object so that a better text description can be formulated using the VI() method in the BrailleR package.

Usage

TimeSeriesPlot(x, ...)

Arguments

x

a numeric variable.

...

additional arguments passed on to the plotting function.

Details

This wrapper will draw the base graphics plot for a time series. The saved object can be plotted later with a call to plot.

Value

An object of class tsplot, with the addition of any calls to the main title or axis labels being explicitly stored even if a zero length character string.

Author(s)

A. Jonathan R. Godfrey

References

Godfrey, A.J.R. (2013) ‘Statistical Software from a Blind Person's Perspective: R is the Best, but we can make it better’, The R Journal 5(1), pp73-79.

Examples

attach(airquality)
op = par(mfcol=c(3,2))
plot(as.ts(Wind), ylab="Wind", col=4)
test1 = TimeSeriesPlot(Wind, col=4)
test1 #does the plot method work?
plot(as.ts(Ozone), ylab="Ozone")
test2 = TimeSeriesPlot(Ozone)
test2 # does the plot method work?
par(op)
detach(airquality)

[Package BrailleR version 0.32.1 Index]