SpatialPolygons-class           package:sp           R Documentation

_C_l_a_s_s "_S_p_a_t_i_a_l_P_o_l_y_g_o_n_s"

_D_e_s_c_r_i_p_t_i_o_n:

     class to hold polygon topology (without attributes)

_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 to the function SpatialPolygons

_S_l_o_t_s:

     '_p_o_l_y_g_o_n_s': Object of class '"list"'; list elements are all of
          class Polygons-class

     '_p_l_o_t_O_r_d_e_r': Object of class '"integer"'; integer array giving the
          order in which objects should be plotted 

     '_b_b_o_x': Object of class '"matrix"'; see Spatial-class 

     '_p_r_o_j_4_s_t_r_i_n_g': Object of class '"CRS"'; see CRS-class

_E_x_t_e_n_d_s:

     Class '"Spatial"', directly.

_M_e_t_h_o_d_s:

     No methods defined with class "SpatialPolygons" in the signature.

_N_o_t_e:

_A_u_t_h_o_r(_s):

     Roger Bivand

_R_e_f_e_r_e_n_c_e_s:

_S_e_e _A_l_s_o:

     SpatialPolygons

_E_x_a_m_p_l_e_s:

     data(ncshp)
     nc1 <- as.SpatialPolygons.Shapes(nc.shp$Shapes, as.character(nc.shp$att.data$FIPS))
     plotSpatialPolygons(nc1)
     invisible(text(getSpPPolygonsLabptSlots(nc1), labels=getSpPPolygonsIDSlots(nc1), cex=0.6))
     data(ncmap)
     IDs <- sapply(strsplit(ncmap$names, ","), function(x) x[2])
     nc2 <- as.SpatialPolygons.map(ncmap, IDs)
     plotSpatialPolygons(nc2)
     invisible(text(getSpPPolygonsLabptSlots(nc2), labels=getSpPPolygonsIDSlots(nc2), cex=0.6))
     data(co37_d90_arc)
     data(co37_d90_pal)
     data(co37_d90_pat)
     IDs <- paste(pat$ST[-1], pat$CO[-1], sep="")
     nc3 <- as.SpatialPolygons.pal(arc, pal, IDs=IDs)
     plotSpatialPolygons(nc3)
     invisible(text(getSpPPolygonsLabptSlots(nc3), labels=getSpPPolygonsIDSlots(nc3), cex=0.6))

