powered by
Draw vertical and/or horizontal lines at positions in a graph located by clicking
locLine(h = TRUE, v = TRUE, n = 1, ...)
Draw horizontal line at clicked location? DEFAULT: TRUE
Draw vertical line at clicked location? DEFAULT: TRUE
Number of points to be clicked. DEFAULT: 1
Further arguments passed to abline like lty, lwd, col, etc
abline
locator result
locator
Not tested across platforms yet...
locArrow, locator, abline
locArrow
# NOT RUN { plot(cumsum(rnorm(60)), type="l") ## locLine() # only do this manually in interactive() mode # }
Run the code above in your browser using DataLab