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))

