| updateDFBysPlot {iSPlot} | R Documentation |
updateDFBysPlot is called by updateDF when initializing a gUpdateDataMessage object and the active view is a scatterplot. updateDFBysPlot determines the slot values for the new object by calling the function, getChangeDFData. Then updateDFBysPlot returns the slot values in a list.
updateDFBysPlot(viewObj, where)
viewObj |
a view object, inherited from genView |
where |
where the data will change (for instance it could be a row name or index) |
type |
the type of change, can be "add", "delete", "modify", or "reset" |
mData |
the new data needed to update the data set |
to |
which data set to update |
Elizabeth Whalen
updateDFBySpread,
gUpdateDataMessage-class,
getChangeDFData
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)
# now set the view mode
setHighlightMode()
# now click on a point on the plot and that will cause updateDFBysPlot
# to be called - you can tell it was called because the data and
# thus, the plot will change
}