Create kde density version of a raster
smooth_raster(
x,
bw = raster::res(x),
smooth_fact = 5,
keep_resolution = TRUE,
na.rm = TRUE,
pad = TRUE,
padValue = NA,
threshold = NULL,
type = c("Gauss", "circle", "rectangle"),
...
)
raster object
bandwidth
integer
, disaggregate factor to have a
better smoothing
integer
, should the returned map have same
resolution as x
or keep the disaggregated raster resulting from
smooth_fact
?
should the NA
value be removed from the raster?
should the data be padded?
what should the padding value be?
cells with a lower (weighted) value of this threshold will be removed.
what is the type of smoothing (see raster::focal()
)
passed through to raster::focal()
.