TracePlot(FitAR) | R Documentation |
Cleveland (1993) pointed out that the aspect-ratio is important in graphically showing the rate-of-change or shape information. For many time series, it is preferably to set this ratio to 0.25 than the default. In general, Cleveland shows that the best choice of aspect-ratio is often obtained by if the average apparent absolute slope in the graph is about 45 deg. But for many stationary time series, this would result in an aspect-ratio which would be too small. As a comprise we have chosen a default of 0.25 but the user can select other choices.
TracePlot(z, aspect = 0.25, type = "l", ylab=NULL, main=NULL, ...)
z |
a ts-object or vector containing the time series |
aspect |
desired aspect-ratio for plot |
type |
plot type, default type="l" join points with lines |
ylab |
vertical axis title |
main |
optional title |
... |
optional arguments passed to plot |
If z has attribute "title" containing a character string, this is used
on the plot.
Time series input using the function readts
always
have this attribute set.
no return value
The aspect-ratio may also be controlled in the lattice function xyplot that is used in the function TimeSeriesPlot.
A.I. McLeod
W.S. Cleveland (1993), Visualizing Data.
ts
,
plot.ts
,
ts.plot
,
Readts
,
TimeSeriesPlot
#from built-in datasets TracePlot(AirPassengers) title(main="Monthly number of trans-Atlantic airline passengers") # #compare plots for lynx series plot(lynx) win.graph() TracePlot(lynx, type="o", pch=16, ylab="# pelts", main="Lynx Trappings")