Michael Bach
2011-Apr-29 15:10 UTC
[R] Specify custom par(mfrow()) layout for defined plot()
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
Uwe Ligges
2011-May-02 11:17 UTC
[R] Specify custom par(mfrow()) layout for defined plot()
On 29.04.2011 17:10, Michael Bach wrote:> 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())?This does not work and is one of the reasons why the grid package was developed. Uwe Ligges> 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.
Maybe Matching Threads
- How to concatenate a several rows according with a column ?
- Overriding contributed package functions
- Serie temporal interrumpida del tipo AirPassengers
- installation problem: package 'mgcv' could not be loaded
- installation problem: package 'mgcv' could not be loaded