[R] locator function and connecting segment

Greg Snow Greg.Snow at imail.org
Thu Jul 29 21:55:36 CEST 2010


Do you mean like:

> plot(1:10)
> locator(2, type='l')



-- 
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 Erin Hodgess
> Sent: Thursday, July 29, 2010 10:50 AM
> To: R help
> Subject: [R] locator function and connecting segment
> 
> Dear R People:
> 
> I'm using the locator() function on a chart and I select two values.
> 
> Is there a way already in place to connect the two values with a line
> segment, please?
> 
> Just thought I'd check before I started coding.
> 
> Thanks in advance,
> Sincerely,
> Erin
> 
> 
> --
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: erinm.hodgess at gmail.com
> 
> ______________________________________________
> 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