.BG
.VE $Header: /usr3/s/current/s/.help/RCS/tsplot,v 1.2 83/12/30 19:36:11 rab Exp $
.FN tsplot
.FN tslines
.FN tspoints
.TL
tsplot  tslines  tspoints: Plot Multiple Time-Series
.CS
tsplot(ts1, ts2, ..., type=, lty=, pch=, col=)
.PP
.AG tsi
time-series to be plotted.  The x-axis is set up as the
union of the times spanned by the series.  The y-axis
includes the range of all the series.  Missing values (NAs)
are allowed.
.AG type=
an optional character string, telling which type of plot
(points, lines, both, none or high-density) should be done
for each plot.  The first character of type defines the
first plot, the second character the second, etc.  Elements
of type are used cyclically; e.g., "pl" alternately plots
points and lines.  Default is "l" (lines) for `tsplot' and
`tslines' and "p" for `tspoints'.
.AG lty=
optional vector of line types.  The first element is the
line type for the first line, etc.  Line types will
be used cyclically until all plots are drawn.  Default is
`1:5'.
.AG pch=
optional character vector for plotting characters 
The first character is the plotting
character for the first plot of type "p", the second for the
second, etc.  Default is the digits (1 through 9, 0) then
the letters.
.AG col=
optional vector of colors.  Default is `1:4'.  Colors are
also cycled if necessary.
.PP
Graphical parameters may also be supplied as arguments to this
function (see `par').
.PP
`tsplot' generates a new plot; `tspoints' and `tslines' add to the
current plot.
.EX
tsplot(gnp,smooth(gnp),type="pl")
tspoints(x,y,pch="*") # points with "*" for both series
# the example plot is produced by:
tsplot(hstart,smooth(hstart),type="pl")
title(main="Housing Starts",sub="Data and Smoothed Values")
.PI
.KW ts*
.KW plot*
.KW hplot*
.KW aplot*
.WR
