Home Comments Thread
New Thread

1 Comment

giscus-bot giscus-bot 2022-12-16 23:02:35
Guest *Olga* @ 2012-12-05 14:32:55 originally posted:

Thanks, it works great! But I want to use it whithin a LaTeX document.
For now, first I find id$ind and id$pos and then when I want to compile a pdf I have to uncomment line with 'identify'. Is there a better way?

yihui yihui 2022-12-16 23:02:36

You can either save the results of identify() in advance, or write your own identify function, e.g. a quick and dirty version:

identify2 = function(x, y, x0, y0) {
intersect(which.min(abs(x - x0)), which.min(abs(y - y0)))
}

Originally posted on 2012-12-05 19:34:50

Sign in to join the discussion

Sign in with GitHub