Ugur Ozdemir
2007-Dec-11 23:44 UTC
[R] Using the same y-axis range for each plot in "plot.ts"
Hi,
I would like to plot multiple time-series plots
separately in the same window but I would like to have
the same y-axis range for all of the plots for the
sake of comparison. I am pretty sure there is a quick
way to do it in plot.ts which I could not find.
Any help is very much appreciated.
Ugur
Microsoft gives you windows, Linux gives you the whole house.
____________________________________________________________________________________
Be a better friend, newshound, and
Gabor Grothendieck
2007-Dec-11 23:57 UTC
[R] Using the same y-axis range for each plot in "plot.ts"
Try using plot.zoo from the zoo package. This plots them all within the range 3000 to 5000: library(zoo) plot(as.zoo(EuStockMarkets), ylim = c(3000, 5000)) On Dec 11, 2007 6:44 PM, Ugur Ozdemir <ugurozdemir at yahoo.com> wrote:> Hi, > > I would like to plot multiple time-series plots > separately in the same window but I would like to have > the same y-axis range for all of the plots for the > sake of comparison. I am pretty sure there is a quick > way to do it in plot.ts which I could not find. > > Any help is very much appreciated. > > Ugur > > > > Microsoft gives you windows, Linux gives you the whole house. > > > ____________________________________________________________________________________ > Be a better friend, newshound, and > > ______________________________________________ > R-help at 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. >