

locator {base}                               R Documentation

_G_r_a_p_h_i_c_a_l _I_n_p_u_t

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

     `locator' reads the position of the graphics cursor
     when the (first) mouse button is pressed.

_U_s_a_g_e_:

     locator(n=512, type="n")

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

       n: the maximum number of points to locate.

    type: One of `"n"', `"p"', `"l"' or `"o"'. If `"p"' or
          `"o"' the points are plotted; if `"l"'  or `"o"'
          they are joined by lines.

_D_e_t_a_i_l_s_:

     Unless the process is terminated prematurely by the
     user (see below) at most `n' positions are determined.

     The input process can be terminated prematurely by
     pressing any mouse button other than the first.

_V_a_l_u_e_:

     A list containing `x' and `y' components which are the
     coordinates of the identified points.

