 

	 BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px;
}Hello, 

	I am trying to create a plot whose x-axis is wide enough to
accommodate the following: 

	a) a character string on the left side (i.e., Text 1);
 b) a known range of values in the middle (i.e., Range);
 c) a character string on the right side (i.e., Label 2) 

	The plot would start with the range of values in the middle and would
be expanded to the left and right by a width proportional to the
length of Text 1 and Label 2, respectively.  (The width would need to
be expressed in the same units as those of the middle range of
values.) 

	In R, how can I determine the width of Text 1 and Label 2 and express
it in the same units as those pertaining to Range?  (I know how to
determine the width of these character strings in inches for a given
plot via strwidth(), but for some reason I am not able to connect that
width to the units of Range.)

	Here is some R code illustrating what the plot would look like:
 plot(NA, xlim=c(1,10), ylim=c(1,5),type="N")
 abline(v=1,lty=2,col="red")
 abline(v=2,lty=2,col="red") 
 abline(v=8,lty=3,col="blue")
 abline(v=10,lty=3,col="blue") 
 text(1,3,"Text 1",pos=4)
 text(8,3,"Label 2",pos=4)
 arrows(2,3,8,3,code=3, length=0.1,lwd=2)
 text(5,3,"Range",pos=3)
	Thank you in advance for any ideas you can provide.

	Isabella 
 Isabella R. Ghement, Ph.D. 
 Ghement Statistical Consulting Company Ltd. 
 301-7031 Blundell Road, Richmond, B.C., Canada, V6Y 1J5 
 Tel: 604-767-1250 
 Fax: 604-270-3922 
 E-mail: isabella@ghement.ca 
 Web: www.ghement.ca 
  
	[[alternative HTML version deleted]]

