TSPlot {BrailleR} | R Documentation |
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.
TimeSeriesPlot(x, ...)
x |
a numeric variable. |
... |
additional arguments passed on to the plotting function. |
This wrapper will draw the base graphics plot for a time series. The saved object can be plotted later with a call to plot
.
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.
A. Jonathan R. Godfrey
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.
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)