select.spatial              package:sp              R Documentation

_s_e_l_e_c_t _p_o_i_n_t_s _s_p_a_t_i_a_l_l_y

_D_e_s_c_r_i_p_t_i_o_n:

     select a number of points by digitizing the area they fall in

_U_s_a_g_e:

     select.spatial(data, digitize = TRUE, pch = "+", rownames = FALSE)

_A_r_g_u_m_e_n_t_s:

    data: data object of class, or extending 'SpatialPoints'; this
          object knows about its x and y coordinate 

digitize: logical; if TRUE, points in a digitized polygon are selected;
          if FALSE, points identified by mouse clicks are selected 

     pch: plotting character used for points

rownames: logical; if FALSE, row (coordinate) numbers are returned; if
          TRUE and data contains a data.frame part, row.names for
          selected points in the data.frame are returned. 

_V_a_l_u_e:

     if rownames == FALSE, array with either indexes (row numbers) of
     points inside the digitized polygon; if rownames == TRUE,
     character array with corresponding row names in the data.frame
     part

_S_e_e _A_l_s_o:

     point.in.polygon, locator,  SpatialPoints-class,
     SpatialPointsDataFrame-class

_E_x_a_m_p_l_e_s:

     data(meuse)
     ## the following command requires user interaction: left mouse
     ## selects points, right mouse ends digitizing
     data(meuse)
     coordinates(meuse) = c("x", "y")
     # select.spatial(meuse)

