resetData               package:iSPlot               R Documentation

_R_e_s_e_t_s _t_h_e _d_a_t_a _t_h_a_t _c_o_r_r_e_s_p_o_n_d_s _t_o _t_h_e _a_c_t_i_v_e _v_i_e_w

_D_e_s_c_r_i_p_t_i_o_n:

     The resetData function will provide the same functionality as
     choosing the Reset menu item from the Edit menu on the control
     window.  This function will return the data set to its state when
     it was originally loaded.

_U_s_a_g_e:

     resetData()

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'loadData', 'replotViews'

_E_x_a_m_p_l_e_s:

       if (interactive())
       {
         loadData("USArrests")
         setActiveMVC("USArrests")
         createSPlot(varx="Murder", vary="Assault")
         setCallFunc("leftButtonClick", "highlight a point")
         # now click on a few points to highlight them
         # and then reset the data set (which will remove the highlighting)
         Sys.sleep(3)
         resetData()
       }

