[R] Title of page with multiple plots
Earl F. Glynn
efg at stowers-institute.org
Fri May 12 19:40:32 CEST 2006
"John Sorkin" <jsorkin at grecc.umaryland.edu> wrote in message
news:s4639800.096 at MEDICINE.umaryland.edu...
> I want to place four plots on a page, and I would like to have all four
> plots share a common title. I have tried the following code, but the
> title is centered over the fourth graph and not centered across all four
> plots. Does anyone have any suggestions?
You may want to adjust the "North" parameters for the outer margin area
(oma) and the regular margin (mar):
# oma and mar: c(South,West,North,East)
oldpar <- par(mfcol =c(1,4), oma=c(0,0,2,0), mar=c(5.1,4.1,0,2.1))
plot(1)
plot(2)
plot(3)
plot(4)
title("Common title", outer=TRUE)
par(oldpar)
efg
Earl F. Glynn
Scientific Programmer
Bioinformatics
Stowers Institute for Medical Research
More information about the R-help
mailing list