[R] Placing text outside graph boundary

Greg Snow Greg.Snow at imail.org
Fri Jun 26 18:13:51 CEST 2009


If you are using base graphics:

Create an outer margin using something like: par(oma=c(0,0,3,0))

Then use mtext with the outer argument to place the text in the outer margin.

Hope this helps,

-- 
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 Payam Minoofar
> Sent: Thursday, June 25, 2009 5:51 PM
> To: r-help at r-project.org
> Subject: [R] Placing text outside graph boundary
> 
> Hello,
> 
> Is possible to place a label on a multipanel figure outside the
> boundaries of any single one of the existing graphs in a panel?
> 
> Specifically, I have a function that creates a panel with quartz() and
> then fills it with 6 graphs consisting of exactly the same plot for 6
> different groups. I would like to add one title for the entire figure
> at the top of the figure, but I cannot figure out how to do that
> without anchoring the title one of the graphs.
> 
> Is it possible to do that?
> 
> Thank you very much.
> 
> Payam
> --
> Payam Minoofar, Ph.D.
> Scientist
> Meissner Filtration Products
> 4181 Calle Tesoro
> Camarillo, CA 93012
> USA
> +1 805 388 9911
> +1 805 388 5948 fax
> Payam.minoofar at meissner.com
> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> 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