powered by
Locator function with set parameters
zlocator(COL = 1, ID = FALSE, NUM = FALSE, YN = NULL, style = 0)
list:
x-locations
y-locations
number of points
color
logical, identify points
number of windows to span for lines
0,1,2 for differnt style of plotting vertical lines
Jonathan M. Lees<jonathan.lees.edu>
if the window is divided into YN horizontal regions, style =2 will plot segments only within regions based on y-value of locator().
plocator, locator
plot(c(0,1), c(0,1), type='n') for(i in 1:5) { abline(h=i/6) } if(interactive() )zlocator(COL = 1, NUM = 4, YN = 6, style = 2)
Run the code above in your browser using DataLab