getPlotsFromViews {iSPlot}R Documentation

Get all View Objects of a Particular Class from the View List

Description

getPlotsFromViews returns all objects of class, sPlotView, from the environment variable, viewList, in viewEnv. getSpreadFromViews returns all objects of class, spreadView, from the environment variable, viewList, in viewEnv.

Usage

getPlotsFromViews()
getSpreadFromViews()

Value

getPlotsFromViews returns a list where each element is of class, sPlotView. This returned list will be a subset of viewList in viewEnv. If there are no elements of class sPlotView in viewList, then getPlotsFromViews will return an empty list.
getSpreadFromViews returns a list where each element is of class, spreadView. This returned list will be a subset of viewList in viewEnv. If there are no elements of class spreadView in viewList, then getSpreadFromViews will return an empty list.

Author(s)

Elizabeth Whalen

See Also

viewEnv

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)  
    # creating a spreadsheet should occur through View Data under
    # the Display menu
    createView(type="spreadView",dataName="USArrests")

    curPlots<-getPlotsFromViews()
    curSpread<-getSpreadFromViews()
  }

[Package iSPlot version 1.0.3 Index]