[R-sig-Geo] spsample creates more or less number of points
subash
subbu_843 at yahoo.co.in
Fri Feb 14 16:01:44 CET 2014
Dear Group,
I am trying to create a points inside a spatial pixel data frame. I would
like create 100 points. Why are the number of created more than or sometimes
less than 100.
data(meuse.grid)
gridded(meuse.grid) = ~x+y
pnts = spsample(meuse.grid,type = "regular",n=100,offset = c(0.5,0.5))
spplot(meuse.grid, "dist",sp.layout = list("sp.points", pnts))
Similarly I am create a fixed 25 points in all polygon of sptial polygon
data frame . How would I achieve it?
Thanks in advance.
Subash
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/spsample-creates-more-or-less-number-of-points-tp7585747.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
More information about the R-sig-Geo
mailing list