[R] Plots: I've deleted axes, now to delete space
Adele_Thompson at cargill.com
Adele_Thompson at cargill.com
Fri May 13 22:37:01 CEST 2011
Thanks all for the replies. I am getting better slowly but surely. I imagine that I will get better at figuring out things as well so I don't have to post as many questions. I do lots of searches, but still cannot figure out how to do everything that I need.
The new code is as such:
par(mfrow=c(4,7), mar=c(2, 2, 2, 1.5), oma=c(1, 1, 4, 0))
for (i in 1:28) {
a<-seq(1,3,1)
plot(a,a, ann=FALSE, main= "plot of a vs a")
}
mtext("Plot of a vs a",side=3,outer=TRUE)
-----Original Message-----
From: murdoch.duncan at gmail.com [mailto:murdoch.duncan at gmail.com]
Sent: Friday, May 13, 2011 03:25 PM
To: Thompson, Adele - Adele_Thompson at cargill.com
Cc: Greg.Snow at imail.org; r-help at r-project.org
Subject: Re: [R] Plots: I've deleted axes, now to delete space
On 11-05-13 4:21 PM, Adele_Thompson at cargill.com wrote:
> Easy fix. Under ?par, I don't see where I can enter an overall title. Should I add a text command or something?
mtext() writes text in the margins; argument "outer" puts it in the
outer margins.
Duncan Murdoch
>
> -----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.
>
More information about the R-help
mailing list