You can call par('usr') to find the current coordinates, then use the
text function (the pos and offset arguments may be helpful as well)

The cnvrt.coords function from the TeachingDemos package may also be of
help for finding coordinates for the text function.

Hope this helps,

-- 
Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
[EMAIL PROTECTED]
(801) 408-8111
 
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Brewer
> Sent: Tuesday, August 07, 2007 9:09 AM
> To: r-help@stat.math.ethz.ch
> Subject: [R] Positioning text in top left corner of plot
> 
> Simple question how can you position text in the top left 
> hand corner of a plot?  I am plotting multiple plots using 
> par(mfrow=c(2,3)) and all I want to do is label these plots 
> a), b), c) etc.  I have been fiddling around with both text 
> and mtext but without much luck.  text is fine but  each plot 
> has a different scale on the axis and so this makes it 
> problematic.  What is the best way to do this?
> 
> Many thanks
> 
> Dan
> --
> **************************************************************
> Daniel Brewer, Ph.D.
> 
> Institute of Cancer Research
> Email: [EMAIL PROTECTED]
> **************************************************************
> 
> The Institute of Cancer Research: Royal Cancer Hospital, a 
> charitable Company Limited by Guarantee, Registered in 
> England under Company No. 534147 with its Registered Office 
> at 123 Old Brompton Road, London SW7 3RP.
> 
> This e-mail message is confidential and for use by the\ > ...{{dropped}}

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.

Reply via email to