How can I get the value of a kernel density estimate at specific points?

前端 未结 2 696
我寻月下人不归
我寻月下人不归 2020-12-31 06:00

I am experimenting with ways to deal with overplotting in R, and one thing I want to try is to plot individual points but color them by the density of their neighborhood. In

2条回答
  •  猫巷女王i
    2020-12-31 06:47

    I eventually found the precise function I was looking for: interp.surface from the fields package. From the help text:

    Uses bilinear weights to interpolate values on a rectangular grid to arbitrary locations or to another grid.

提交回复
热议问题