SpatialPoints-class            package:sp            R Documentation

_C_l_a_s_s "_S_p_a_t_i_a_l_P_o_i_n_t_s" ~~~

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

     Class for (irregularly spaced) points

_O_b_j_e_c_t_s _f_r_o_m _t_h_e _C_l_a_s_s:

     Objects can be created by calls of the form 'SpatialPoints(x)'.

_S_l_o_t_s:

     '_c_o_o_r_d_s': Object of class '"matrix"', containing the coordinates
          (each row is a point) 

     '_b_b_o_x': Object of class '"matrix"', with bounding box 

     '_p_r_o_j_4_s_t_r_i_n_g': Object of class '"CRS"', projection string 

_E_x_t_e_n_d_s:

     Class '"Spatial"', directly.

_M_e_t_h_o_d_s:

     [ 'signature(x = "SpatialPoints")': subsets the points; only rows
          can be subsetted 

     _c_o_e_r_c_e 'signature(from = "SpatialPoints", to = "data.frame")': 
          retrieves the data part

     _c_o_e_r_c_e 'signature(from = "data.frame", to = "SpatialPoints")':
          sets coordinates, which may be in a data frame 

     _c_o_e_r_c_e 'signature(from = "matrix", to = "SpatialPoints")': set
          coordinates, which may be in a matrix 

     _c_o_o_r_d_i_n_a_t_e_s 'signature(obj = "SpatialPoints")': retrieves the
          coordinates, as matrix 

     _p_l_o_t 'signature(x = "SpatialPoints")': plot point symbols

     _p_o_i_n_t_s 'signature(x = "SpatialPoints")': add point symbols to plot

     _s_h_o_w 'signature(object = "SpatialPoints")': prints coordinates 

_N_o_t_e:

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

     Edzer J. Pebesma, e.pebesma@geo.uu.nl

_R_e_f_e_r_e_n_c_e_s:

     ~put references to the literature/web site here ~

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

     'SpatialPointsDataFrame-class'

_E_x_a_m_p_l_e_s:

     x = c(1,2,3,4,5)
     y = c(3,2,5,1,4)
     S <- SpatialPoints(cbind(x,y))
     S <- SpatialPoints(list(x,y))
     S <- SpatialPoints(data.frame(x,y))
     S
     plot(S)

