Look at the strwidth and strheight functions. Also note the adj parameter (see ?par for details).
-- Gregory (Greg) L. Snow Ph.D. Statistical Data Center Intermountain Healthcare greg.s...@imail.org 801.408.8111 > -----Original Message----- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Francois Rousseu > Sent: Saturday, March 26, 2011 6:40 PM > To: r-help@r-project.org > Subject: [R] Coordinates of the text region > > > Hello R people > > Is there a way to get the coordinates of the text region (coordinates > of the four corners for example) when using the text function? I'm > looking for a way that does not make use of interactive function like > locator. My goal is to determine the position of other structures in a > graphic so that they don't overlap with the text. > > Thanks > Francois Rousseu > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@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. ______________________________________________ R-help@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.