removeEnvView             package:iSPlot             R Documentation

_R_e_m_o_v_e_s _v_i_e_w _i_n_f_o_r_m_a_t_i_o_n _f_r_o_m _e_n_v_i_r_o_n_m_e_n_t _v_a_r_i_a_b_l_e, _v_i_e_w_L_i_s_t

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

     removeEnvView removes views from viewList based on the device
     number or the data name depending on whether the class is plotView
     or spreadView.  removeEnvView is called when a  gtk window
     containing a view is destroyed.

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

     removeEnvView(viewItem)

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

viewItem: the view object to remove from viewList 

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

     Elizabeth Whalen

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

     'setDeleteEvents'

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

       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)  
         # now check viewList in viewEnv
         get("viewList",viewEnv)

         # now close the gtk window that has the scatterplot in it
         # closing the window will cause removeEnvView to be called

         # then check again viewList in viewEnv - that 
         # sPlotView object should be removed 
         get("viewList",viewEnv)    
       }

