powered by
Draw vertical and/or horizontal lines at positions in a graph located by clicking
locLine(h = TRUE, v = TRUE, n = 1, ...)
locator result
locator
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
Berry Boessenkool, berry-b@gmx.de, Mar 2016
Not tested across platforms yet...
locArrow, locator, abline
locArrow
plot(cumsum(rnorm(60)), type="l") ## locLine() # only do this manually in interactive() mode
Run the code above in your browser using DataLab