[R] Specify custom par(mfrow()) layout for defined plot()

From: Michael Bach <phaebz_at_gmail.com>
Date: Fri, 29 Apr 2011 18:10:19 +0300


Dear R Users,

I am doing stats::decompose() on 4 different time series. When I issue

csdA <- decompose(tsA)
plot(csdA)

I get a summary plot for observed, trend, seasonal and random components of decomposed time series tsA. As I understand it, the object returned by decompose() has it's own plot method where mfrow(4,1) etc. is defined. Now suppose I wanted to wrap those mfrow(4,1) into my own mfrow(2,2) layout. How could I achieve this? Is there a general way to handle these cases? Something like a "meta" par(mfrow())?

Best Regards,
Michael Bach



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. Received on Fri 29 Apr 2011 - 15:13:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Apr 2011 - 15:20:34 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive