checkPoint {iSPlot} | R Documentation |
checkPoint tests whether a (x,y) location falls within a point on the active plot. checkPoint is called in the callback for the motion notify event. If the (x,y) location is in a point, then a gUpdateDataMessage object is created and the handleMessage method is called. Also, if the (x,y) location is in a point and the view mode is identify, then the row name for that point is printed next to the point on the active plot.
checkPoint(curx, cury, curPlot)
curx |
the x value from the motion notify event |
cury |
the y value from the motion notify event |
curPlot |
the plot object |
Elizabeth Whalen
identifyPoint
,
gUpdateDataMessage-class
,
printText
,
sPlotView-class
if (interactive()) { createControlWindow() # should load data through Open Data or Open File under the File menu data(USArrests) loadDFData(USArrests,"USArrests") # plotting the data should occur through Plot Data under # the Display menu createView(type = "plotView", dataName = "USArrests", plotType = "sPlotView", dfRows = 1:nrow(USArrests), dfColumns = 1:2) # should set the view mode using the ViewMode menu setIdentifyMode() # now move the mouse over a point on the plot and the point should # be highlighted with the row name printed next to it # note that just moving the mouse over the plot while in identify point # will cause checkPoint to be called }