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? -- Rajesh.J ------------------------------------------------------------ "I skate to where the puck is going to be, not where it has been." - Wayne Gretzky ------------------------------------------------------------- [[alternative HTML version deleted]]
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