I would like to use a raster map (find below) to estimate or create a kernel density distribution. The objective is to extrapolate the kernel density function and re-use it in order to distribute a traits in space according to such kernel density function.
Do yo have any suggestion?
I tried using the
sp.kde function in
SpatialEco R package. However, it estimates a kernel density in continuos terms, while I would like to distribute the kernel density values in a 23 x 23 grid (space). In other words, I would write in each cell of the picture below the corresponding kernel value.