checkIfPlotted            package:iSPlot            R Documentation

_C_h_e_c_k _i_f _D_a_t_a _s_e_t _h_a_s _V_i_e_w_s

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

     When adding a data set to dataEnv, checkIfPlotted checks if that
     data already has views that depend on it.  If the newly added data
     already has views, then the views need to be updated.  This occurs
     when the  data is reset.

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

     checkIfPlotted(dataName)

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

dataName: the name of the data set 

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

     Elizabeth Whalen

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

     'gAddDataMessage-class',

_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")
         dMessage<-new("gAddDataMessage", data="USArrests")
         # when this message is handled by handleMessage, checkIfPlotted will
         # be called
         handleMessage(dMessage)
         # should activate the Open Data menu item to call this function
         setOpenDView()
       }  

