Re: [R] Title of page with multiple plots

From: Andrew Robinson <A.Robinson_at_ms.unimelb.edu.au>
Date: Fri 12 May 2006 - 11:16:13 EST

John,

try adding the argument outer=T to the title() function

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

Cheers

Andrew

On Thu, May 11, 2006 at 08:00:34PM -0400, John Sorkin wrote:
> 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@grecc.umaryland.edu
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

-- 
Andrew Robinson  
Department of Mathematics and Statistics            Tel: +61-3-8344-9763
University of Melbourne, VIC 3010 Australia         Fax: +61-3-8344-4599
Email: a.robinson_at_ms.unimelb.edu.au         http://www.ms.unimelb.edu.au

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri May 12 11:22:13 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 12 May 2006 - 18:10:05 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.