BrailleR (version 0.29.1)

TSPlot: 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.

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.

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.

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

Run this code
# NOT RUN {
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)
rm(test1); rm(test2); rm(op)
# }

Run the code above in your browser using DataLab