Re: [R] Question about putting multiple plots on the same page

From: jim holtman <jholtman_at_gmail.com>
Date: Wed, 9 Jan 2008 19:44:55 -0500

You need to provide commented, minimal, self-contained, reproducible code. The following code works fine for me:

> par(mfrow=c(2,2))
> plot(0)
> plot(1)
> plot(2)
> plot(3)
>

But I have no idea of how you are trying to use it, what operating system you have, what type of device you are going out to, what your margins are, etc.

On Jan 9, 2008 4:52 PM, FD <fhduan_at_gmail.com> wrote:
> Hi,
>
> I met a problem when trying to put multiple plots on the same page. I have a
> plotting function (e.g., myfunction()) that contains the lines of par(),
> layout(). Now I want to try four types of parameter combinations and put
> these four figures on the same page. I tried par(mfrow or mfcol) and layout
> but no go. It seems split.screen is the right choice for me. But I always
> got the error message "Error in plot.new() : figure margins too large". I
> don't really want to change the margin settings in myfunction() since it
> involves lots of modifications. Are there any easier ways to split window
> and also automatically adjust the margins (and other plotting settings)?
> Thanks a lot.
>
> FD
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>

-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

______________________________________________
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 Thu 10 Jan 2008 - 00:47:11 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 Thu 10 Jan 2008 - 07:30:06 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