updateViews {iSPlot} | R Documentation |
updateViews is called from the handleMessage method of class, gUpdateDataMessage, after a change has been made to the data. updateViews creates an object of class, gUpdateViewMessage, and calls the method, handleMessage, so that the views are updated to reflect the change in the data.
updateViews(dfName, type, rowName = c())
dfName |
the data name, a character string |
type |
the type of change the data underwent, can be either "reset", "add", "modify" or "delete" |
rowName |
the row name or index that was changed (i.e. what points changed) |
Elizabeth Whalen
gUpdateDataMessage-class
,
gUpdateViewMessage-class
,
updatePlots
,
updateSpread
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 updateViews # to be called - you can tell it was called because the plot # will change }