[R] Multiple series plot with different 'type' argument
RRoa at fisheries.gov.fk
Sun Jul 24 16:27:38 CEST 2005
I need to plot two time series in the same plot and
they cover the same time range and have the same
RSiteSearch("multiple series plot")
i found this post by Gabor Grothendieck:
Exactly what i need except for one detail. I want one series
to be made of points and the other by a line. When I simply
xts <- ts(x$b,start=x$a)
yts <- ts(y$b,start=y$a)
or if i use the 'type' argument inside gpars=list()
i get an error of "invalid plot type".
Then if i try
i get warnings about NAs introduced by coercion and the
plot still shows two lines.
Is there any other way i can get these two time series
in the same plot one with points and the other with lines?
Any help much appreciated.
More information about the R-help