setTooltips              package:iSPlot              R Documentation

_S_e_t_s _t_h_e _t_o_o_l_t_i_p_s

_D_e_s_c_r_i_p_t_i_o_n:

     setTooltips sets the tooltip values when the callback function is
     to show tooltips over points.  The default value for tooltips is
     to use the row names, but the user can also set the tooltips to be
     values from a column in the data frame.  setTooltips is a command
     line function that is meant only to be used when the user is not
     using the GUI.

_U_s_a_g_e:

     setTooltips(name)

_A_r_g_u_m_e_n_t_s:

    name: can either be the name of a column from the active model or
          it can be 'rowNames' to indicate that the row names should be
          used as the tooltips 

_D_e_t_a_i_l_s:

     If the user wants the tooltips to be values from a column in the
     active model, then the parameter, name, should be the name of that
     column.  If the user wants the tooltips to be the row names, then
     the parameter, name, should be 'rowNames'.

_A_u_t_h_o_r(_s):

     Elizabeth Whalen

_S_e_e _A_l_s_o:

     'setCallFunc', 'getTooltips'

_E_x_a_m_p_l_e_s:

       if (interactive())
       {
         loadData("USArrests")
         setActiveMVC("USArrests")
         createSPlot(varx="Murder", vary="Assault")
         setCallFunc("mouseOver", "show tooltips over points")
         setTooltips("Murder")
         # now move the cursor over the plot
         Sys.sleep(3)
         setTooltips("rowNames")
       }

