geoWeight | R Documentation |
The function performs geographic weighting of non-projected long/lat
data. By default it uses the cosine of latitude to compensate for the
area distortion, though the user can supply other functions via f
.
geoWeight(x, f = function(x) cos(x), ...)
x |
a Raster* object |
f |
a function to be used to the weighting.
Defaults to |
... |
additional arguments to be passed to f |
a weighted Raster* object
data(vdendool)
wgtd <- geoWeight(vdendool)
opar <- par(mfrow = c(1,2))
plot(vdendool[[1]], main = "original")
plot(wgtd[[1]], main = "weighted")
par(opar)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.