setViewMode {iSPlot}R Documentation

Sets the view mode and plot titles

Description

setViewMode sets the variable, viewMode, in controlEnv and changes the titles of all plots to reflect the viewMode so that the user can see what action will occur when interacting with a plot.

Usage

setViewMode(mode)

Arguments

mode A character string that represents the view mode. Currently, can be "identify", "highlight", "color", or "hide".

Author(s)

Elizabeth Whalen

See Also

setHighlightMode, setIdentifyMode, setColorMode, setHideMode

Examples

  if (interactive())
  { 
    createControlWindow()
    # should load data using Open Data under the File Menu
    data(USArrests)
    loadDFData(USArrests,"USArrests")
    # should plot data using Plot Data under the Display Menu
    createView(type = "plotView", dataName = "USArrests", 
               plotType = "sPlotView", dfRows = 1:nrow(USArrests), 
               dfColumns = 1:2) 
    # should set the view mode using Identify under the ViewMode Menu
    setViewMode("identify")
  }

[Package iSPlot version 1.0.3 Index]