Re: [R] plot.ts panel function

From: Dieter Menne <>
Date: Wed 12 Jul 2006 - 19:30:24 EST

Matthias Braeunig <mb.atelier <at>> writes:

> How can I set the ylim in individual panels of a "multiple" plot.ts?
> The panels are all scaled to fully fit the series inside. But I need
> specific scales, and colors ....
> Here is an example:
> plot.ts(cbind(1:10,1:10/10),ylim=c(0,3)) # ylim has no effect
Personally, I tend to believe that this is an issue (being careful to avoid the zoological word, which is reseved for core members) in plot.ts, where xlim and ylim are not included in one of the plot.default calls. It works when you change (around line 40 in plot.ts) to

  plot.default(x[, i], axes = FALSE, xlab = "",

      ylab = "", log = log, col = col, bg = bg, pch = pch,
       ann = ann, type = "n",xlim=xlim,ylim=ylim, ...)

But I am sure, that there were reasons to omit this, and I have not read the documentation carefully.

Dieter mailing list PLEASE do read the posting guide! Received on Wed Jul 12 19:34:20 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 12 Jul 2006 - 22:17:50 EST.

Mailing list information is available at Please read the posting guide before posting to the list.