setViewMode              package:iSPlot              R Documentation

_S_e_t_s _t_h_e _v_i_e_w _m_o_d_e _a_n_d _p_l_o_t _t_i_t_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     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.

_U_s_a_g_e:

     setViewMode(mode)

_A_r_g_u_m_e_n_t_s:

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

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'setHighlightMode',  'setIdentifyMode', 'setColorMode',
     'setHideMode'

_E_x_a_m_p_l_e_s:

       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")
       }

