[R] Coordinates of the text region

2011-03-26 Thread Francois Rousseu
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

Re: [R] Coordinates of the text region

2011-03-26 Thread David Winsemius
On Mar 26, 2011, at 8:39 PM, Francois Rousseu wrote: Hello R people Is there a way to get the coordinates of the text region (coordinates of the four corners for example) What text region are you talking about? when using the text function? I'm looking for a way that does not make use

Re: [R] Coordinates of the text region

2011-03-26 Thread Francois Rousseu
Let's say I do the following: plot(0,0,type=n,xlim=c(0,10),ylim=c(0,10)) rect(4,5,5,6,border=black,col=white) text(4.5,5.5,species,cex=2) I would like to be able to determine a rectangle size that will be able to contain the text species. I'm working on a function using multiple lines and

Re: [R] Coordinates of the text region

2011-03-26 Thread jim holtman
take a look at 'textbox' in plotrix. On Sat, Mar 26, 2011 at 9:05 PM, Francois Rousseu francoisrous...@hotmail.com wrote: Let's say I do the following: plot(0,0,type=n,xlim=c(0,10),ylim=c(0,10)) rect(4,5,5,6,border=black,col=white) text(4.5,5.5,species,cex=2) I would like to be able to

Re: [R] Coordinates of the text region

2011-03-26 Thread Greg Snow
-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