[R] Title of page with multiple plots

John Sorkin jsorkin at grecc.umaryland.edu
Fri May 12 02:00:34 CEST 2006


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?

R 2.1.1
windows xp

oldpar<-par(mfcol =c(1,4),ask=TRUE)


plot(p,varp)
plot(p,SEp)
plot(p,CVp)
plot(p,ppval)

title(paste("P and 95%CI for a sample size of",n,"subjects."))

Thanks,
John

John Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
Baltimore VA Medical Center GRECC and
University of Maryland School of Medicine Claude Pepper OAIC

University of Maryland School of Medicine
Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524

410-605-7119
jsorkin at grecc.umaryland.edu




More information about the R-help mailing list