[Raster-commits] r226 - pkg/raster/man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Jan 31 09:25:31 CET 2009


Author: rhijmans
Date: 2009-01-31 09:25:31 +0100 (Sat, 31 Jan 2009)
New Revision: 226

Modified:
   pkg/raster/man/PolygonsToRaster.Rd
Log:


Modified: pkg/raster/man/PolygonsToRaster.Rd
===================================================================
--- pkg/raster/man/PolygonsToRaster.Rd	2009-01-31 06:16:18 UTC (rev 225)
+++ pkg/raster/man/PolygonsToRaster.Rd	2009-01-31 08:25:31 UTC (rev 226)
@@ -37,7 +37,7 @@
 hole <- rbind(c(-150,-20), c(-100,-10), c(-110,20), c(-150,-20))
 
 polys <- SpatialPolygons(list(Polygons(list(Polygon(cds1)), 1), Polygons(list(Polygon(cds2)), 2), Polygons(list(Polygon(cds3)), 3), Polygons(list(Polygon(hole)), 4) ))
-polys at polygons[[4]]@Polygons[[1]]@hole <- T
+polys at polygons[[4]]@Polygons[[1]]@hole <- TRUE
 r <- raster()
 r <- polygonsToRaster(polys, r)
 #plot(r)
@@ -48,8 +48,8 @@
 addpoly at data[1,1] <- 10
 r2 <- polygonsToRaster(addpoly, r, field=1, updateRaster=TRUE, updateValue="NA")
 plot(r2)
-plot(polys, border="blue", lwd=2, add=T)
-plot(addpoly, add=T, border="red", lwd=2)
+plot(polys, border="blue", lwd=2, add=TRUE)
+plot(addpoly, add=TRUE, border="red", lwd=2)
 
 }
 



More information about the Raster-commits mailing list