plotView-class {iSPlot}R Documentation

Class "plotView": A class to represent a plot view

Description

plotView is a class to represent a view that is a plot. Any particular types of plots can inherit from this class. For instance, sPlotView, is a class that inherits from plotView and represents a scatterplot view. Other types of plot view classes can be created that inherit from this class. Although plotView is not a virtual class, currently no objects of class plotView are created in package, iSPlot.

Objects from the Class

Objects can be created by calls of the form new("plotView", ...).

Slots

plotDevice:
the plot device number
plotPar:
the parameter list for the plot, see par()
drArea:
an object of class "GtkDrawingArea"
dataName:
a character string describing what data is shown in the view
win:
an object of class "GtkWindow" that holds the view
winNum:
a number that tells what number view this is (for example, the first view created will have winNum=1)

Extends

Class "genView", directly.

Methods

drArea
Returns the drArea slot
drArea<-
Sets the drArea slot
plotDevice
Returns the plotDevice slot
plotDevice<-
Sets the plotDevice slot
plotPar
Returns the plotPar slot
plotPar<-
Sets the plotPar slot

Author(s)

Elizabeth Whalen

See Also

genView-class, sPlotView-class, spreadView-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
    createView(type = "plotView", dataName = "USArrests", 
               plotType = "sPlotView", dfRows = 1:nrow(USArrests), 
               dfColumns = 1:2) 
    # this will create an object of class, sPlotView, which inherits from
    # plotView
    is(get("viewList",viewEnv)[[1]],"plotView")  
  }

[Package iSPlot version 1.0.3 Index]