[R] reset par() within plot layout
ssefick at gmail.com
Fri Oct 23 14:35:09 CEST 2009
Maybe something like this?
#Desired result is a layout of 2 plots: one red and one black
On Fri, Oct 23, 2009 at 7:26 AM, Janke ten Holt <j.c.ten.holt at rug.nl> wrote:
> Dear list,
> I would like to produce a matrix of plots, where par() is reset after
> each plot (see below [simplified] example). When I use layout() to do
> so, I seem to also reset the layout. I have not been able to figure out
> how to prevent this from happening.
> Any help is greatly appreciated!
> Example code:
> #Desired result is a layout of 2 plots: one red and one black
> layout(matrix(1:2, nr=2))
> par.ini <- par(no.readonly=TRUE)
> Janke ten Holt
> Dept. of Psychology/Sociology
> University of Groningen, the Netherlands
> R-help at r-project.org mailing list
> 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.
More information about the R-help