getActivePlot {iSPlot}R Documentation

Return the plotView object that corresponds to the active plot

Description

getActivePlot determines which plot is active based on which device is active and it returns the plotView object that corresponds to this plot.

Usage

getActivePlot()

Value

getActivePlot returns the plotView object that corresponds with the active plot.

Author(s)

Elizabeth Whalen

Examples

  if (interactive())
  {
    createControlWindow()
    # should load data through Open Data or Open File under the File menu
    data(USArrests)
    loadDFData(USArrests, "USArrests")
    # now go to the Display menu and choose the Plot Data menu item
    # make a scatterplot of this data set

    # then ask for the active plot using the function:
    # the following code should be run only after a plot has been created!
    #x<-getActivePlot()
    #print(class(x))
    #print(colx(x))
    #print(coly(x))
  }

[Package iSPlot version 1.2.0 Index]