[R] abline and locator?
Richard Rowe
richard.rowe at jcu.edu.au
Tue Oct 14 06:36:08 CEST 2008
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
More information about the R-help
mailing list