I have latitude and longitude point data over time. I would like to plot (in R or Matlab) a contour map of spatial-temporal K function (much like the one below), but have no ide
Well, I stumbled across your question, because I am myself dealing with this kind of analysis now. I don't know if you still need an answer, but one way of computing it is to use stpp package in R.
The function is named STIKhat and you can plot it using plotK.
The documentation is here. Its very easy to follow that's why I dont put it here. Hope it helps someone that might have the same question!