[R] Plots: I've deleted axes, now to delete space
Greg Snow
Greg.Snow at imail.org
Fri May 13 22:26:03 CEST 2011
Use par with oma to leave room for the overall title, then you need another function to create the title. The mtext function is probably the easiest.
--
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
801.408.8111
> -----Original Message-----
> From: Adele_Thompson at cargill.com [mailto:Adele_Thompson at cargill.com]
> Sent: Friday, May 13, 2011 2:21 PM
> To: Greg Snow; r-help at r-project.org
> Subject: RE: [R] Plots: I've deleted axes, now to delete space
>
> Easy fix. Under ?par, I don't see where I can enter an overall title.
> Should I add a text command or something?
>
> -----Original Message-----
> From: Greg.Snow at imail.org [mailto:Greg.Snow at imail.org]
> Sent: Friday, May 13, 2011 03:17 PM
> To: Thompson, Adele - Adele_Thompson at cargill.com; r-help at r-project.org
> Subject: RE: [R] Plots: I've deleted axes, now to delete space
>
> 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