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 > > 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 response, M > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html and provide commented, minimal, > self-contained, reproducible code. -- > Simon Wood, Mathematical Sciences, University of Bath, Bath, BA2 7AY UK > +44 1225 386603 www.maths.bath.ac.uk/~sw283 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.