Stephen:
That works great - thanks! I have to admit it gets a little frustrating having to switch back and forth between packages because of cross-package incompatibility, but hey, more functionality = good. Best, john ________________________________ From: stephen sefick [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2008 11:57 AM To: Kerpel, John Cc: r-help@r-project.org Subject: Re: [R] Multiple time series plots have you tried package(zoo) it works very well and should do what you want On Wed, Jul 2, 2008 at 10:54 AM, Kerpel, John <[EMAIL PROTECTED]> wrote: Hi all: I'm trying to plot two time series created in Rmetrics and label the x-axis with dates. I tried the following: dates <- as.Date(seriesPositions(x.agg)) r <- as.Date(range(dates)) ts.plot([EMAIL PROTECTED],c(1,5)],gpars=list(ylab="Volume", lty=c(1:2),xaxt="n",main="Plot of Volume")) axis.Date(1, at=seq(r[1], r[2], length.out=10), format="%Y-%m-%d",cex.axis=.75) legend("bottomleft",legend=c("Base Volume","Model Base Volume"),lty=c(1,2),inset=.01,cex=.5,adj=0) All this works fine, except I don't get the dates on the x-axis like I want. When I try to plot a single series using "plot" it works as expected. Any advice? John [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. -- Let's not spend our time and resources thinking about things that are so little or so large that all they really do for us is puff us up and make us feel like gods. We are mammals, and have not exhausted the annoying little problems of being mammals. -K. Mullis [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.