[R] Returning to normal after call to layout()
Petr Pikal
petr.pikal at precheza.cz
Fri Dec 10 13:12:17 CET 2004
On 10 Dec 2004 at 11:47, michael watson (IAH-C) wrote:
> Hi
>
> I have a function which draws a plot, using the layout() function to
> divide the screen into two parts. The function works fine, but then
> my next call to plot() draws the plot in the first section of the plot
> I've just drawn using layout() - whereas what I want it to do is
> create a new plot.
>
> I tried using dev.off() but that just closes the layout plot window,
> which is not what I want. So my question is - after using the
> layout() function, "layout(matrix(c(1,2), 2, 1))", how do I tell R
Hi
what is wrong on this:
layout(matrix(c(1,2), 2, 1))
plot(1,1)
plot(1,2)
windows() #opens the new graphic device see ?device, ?windows
plot(1,3)
BTW did you read my previous post to your question about legend
on a new window?
Cheers
Petr
> that the next call to a plotting function should use a new window, and
> not the layout window? I've looked in ?layout but there doesn't seem
> to be anything in there.
>
> Thanks
> Mick
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
Petr Pikal
petr.pikal at precheza.cz
More information about the R-help
mailing list