Using ann=F just tells R not to put anything in the margins, it does not reduce 
the size of the margins.  You need to reduce the margin size using par(mar= 
...) with appropriate values.  You can then shrink what goes in the margins 
rather than not plotting it at all (though that is a good first step to make 
sure everything else works).

For adding the cross, look at the cnvrt.coords function in the TeachingDemos 
package, will that do what you want? (look at the examples)

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[EMAIL PROTECTED]
(801) 408-8111
 
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of marcg
> Sent: Wednesday, September 19, 2007 5:26 AM
> To: [EMAIL PROTECTED]
> Subject: [R] layout function for several plots
> 
> Dear all
> 
> I try to print 9 plots on a page, arranged as the code shows below.
> 
> nf <- layout(matrix(c(1,0,2,0,0,3,0,4,0,5,0,6,0,0,0,0,7,0,8,9), 10,2))
> layout.show(nf)
> 
> but when I try to plot, an error message Fehler in plot.new() 
> : Grafikränder zu groß appears
> 
> to verify p.e. with 
> 
> plot(runif(10:1)) 
> 
> i tried with plot(runif(10:1), ann=F) to produce more space, 
> but neither.
> 
> The second question: how to place a cross in the middle of 
> the plot to delineate in 4 big fields (containing each 5 plots)
> 
> Thanks a lot
> 
> 
> --
> 
> ______________________________________________
> [email protected] 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.
> 
> --
> 
> ______________________________________________
> [email protected] 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.
> 

______________________________________________
[email protected] 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.

Reply via email to