scatterplot {iSPlot}R Documentation

Create a scatterplot on a gtk window

Description

scatterplot plots a data set on to a gtk device, using the information from the parameter viewItem, which is an object of class, sPlotView.

Usage

scatterplot(viewItem)

Arguments

viewItem an object of class, sPlotView, that will be used for plotting information

Value

scatterplot returns the parameter, viewItem, that has been updated with new plotting information.

Author(s)

Elizabeth Whalen

See Also

createSPlotView, setParamList, sPlotView-class

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
    # here you can see the extra parameters needed for the plot view
    createView(type = "plotView", dataName = "USArrests", 
               plotType = "sPlotView", dfRows = 1:nrow(USArrests), 
               dfColumns = 1:2) 
    # createView will call createSPlotView, which will call scatterplot
  }

[Package iSPlot version 1.0.3 Index]