What packages and functions in R can perform two-dimensional non-additive local regression / smoothness. For example, consider
b<-seq(-6*pi,6*pi,length=100) xy<-expand.grid(b,b) x=xy[[1]] y=xy[[2]] z= sin(x)+cos(y) + 2*sin(x)*cos(y) contour(b,b,matrix(z,100,100))

What features can appreciate this?
source share