[R] Plots: I've deleted axes, now to delete space

Greg Snow Greg.Snow at imail.org
Fri May 13 22:17:04 CEST 2011


Look at the help for par, specifically the section on 'mar' to set the per plot margins smaller and the section on 'oma' to leave room for the overall title.

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111


> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-
> project.org] On Behalf Of Schatzi
> Sent: Friday, May 13, 2011 2:13 PM
> To: r-help at r-project.org
> Subject: [R] Plots: I've deleted axes, now to delete space
> 
> I am plotting 28 plots on one screen:
> par(mfrow=c(4,7))
> for (i in 1:28) {
> a<-seq(1,3,1)
> plot(a,a, ann=FALSE)
> }
> 
> I want a main title for all the plots (I tried using main but that
> doesn't
> work). I deleted the axes, but am not sure how to delete the space.
> There
> are such large margins between plots so the plots themselves are very
> small.
> If I delete the margins I can leave them all on one page as there are
> only 6
> points (3 in the example) per plot.
> 
> -----
> In theory, practice and theory are the same. In practice, they are not
> - Albert Einstein
> --
> View this message in context: http://r.789695.n4.nabble.com/Plots-I-ve-
> deleted-axes-now-to-delete-space-tp3521078p3521078.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> 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.



More information about the R-help mailing list