[R-sig-Geo] spsample
Luca Candeloro
luca.candeloro at gmail.com
Fri Jul 10 11:59:38 CEST 2015
Hi,
following the example found in SpeciesDistributionModelling, a given number
of points is drawn randomly within a circle:
x <- circles(pts, d=50000, lonlat=T, col='light gray')
# sample randomly from all circles
> samp1 <- spsample(x at polygons, 250, type='random', iter=25)
Is there a way to specify weigths decreasing from the circle center, so
that random points are most likely near it?
thanks ,
Luca
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list