powered by
polyToSp
polyToSp(Z, iZ, k)
zoning geometry (list of SpatialPolygons)
zone number
polygon number
a SpatialPolygons
transforms kth polygon of zone into SpatialPolygons
# NOT RUN { ZK=initialZoning(qProb=c(0.4,0.2,0.7),mapTest) Z=ZK$resZ$zonePolygone sph=geozoning:::polyToSp(Z,5,2) plotZ(Z) sp::plot(sph,type="l",col="blue",add=TRUE) # }
Run the code above in your browser using DataLab