rajesh j wrote:
Hi,

I'd like to plot vertical lines on my plot using the locator.But since
locator returns two values I end up getting 2 vertical lines for every
click.Is there some way only the x coordinate from locator can be returned?
locator(1)$x



--
Dr Richard Rowe
Zoology & Tropical Ecology
School of Marine & Tropical Biology
James Cook University
Townsville 4811
AUSTRALIA

ph +61 7 47 81 4851
fax +61 7 47 25 1570
JCU has CRICOS Provider Code 00117J

______________________________________________
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.

Reply via email to