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)

