updateDFBysPlot {iSPlot} | R Documentation

## Determines values needed to initialize a gUpdateDataMessage object if the current view is a scatterplot

### Description

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.

### Usage

    updateDFBysPlot(viewObj, where)

### Arguments

`viewObj` | a view object, inherited from genView
`where` | where the data will change (for instance it could be a row name or index)

### Value

`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

### Author(s)

Elizabeth Whalen

### See Also

`updateDFBySpread`, `gUpdateDataMessage-class`, `getChangeDFData`

### Examples

      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
      }

[Package iSPlot version 1.0.7 Index]