Re: [R] smoothing a matrix (interpolate in plane)

2009-03-02 Thread Simon Wood
the thin plate spline, or tensor product smooths built into `mgcv' might be useful here (by default mgcv does automatic bandwidth selection for these). On Sunday 01 March 2009 09:51, Žroutík wrote: Hi R-users, I'd like to smooth a matrix to dismiss spikes and to interpolate in plane

[R] smoothing a matrix (interpolate in plane)

2009-03-01 Thread Žroutík
Hi R-users, I'd like to smooth a matrix to dismiss spikes and to interpolate in plane example of a matrix: Map[1:3,1:3] [,1] [,2] [,3]... [1,] 34.4 34.2 35.1 [2,] 33.4 34.2 35.4 [3,] 34.1 33.2 32.1 dim(Map)[1] =/= dim(Map)[2] What functions can I use? Thanks a lot for any

Re: [R] smoothing a matrix (interpolate in plane)

2009-03-01 Thread Dieter Menne
Žroutík zroutik at gmail.com writes: I'd like to smooth a matrix to dismiss spikes and to interpolate in plane interp.loess in package tgp works nicely for me. Dieter __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help