I'm trying to smooth a 11 X 8 matrix and I can't seem to find a way to do this. I know there are several threads on this but none has helped for my situation. Every approach I've found requires some sort of z ~ x*y approach. In my case I just have a matrix that I would like to simply smooth all of the cell entries to make a smoother surface plot.
m
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] 29.02530 28.57123 39.02334 38.25483 29.59624 65.01706 41.04771 98.62005
[2,] 24.46539 24.08265 32.89272 32.24494 24.94663 54.80279 34.59906 83.12670
[3,] 28.30679 27.86395 38.05733 37.30784 28.86359 63.40758 40.03159 96.17873
[4,] 24.99883 24.60774 33.60991 32.94800 25.49056 55.99770 35.35345 84.93918
[5,] 24.63308 24.24771 33.11817 32.46595 25.11761 55.17842 34.83621 83.69646
[6,] 29.85776 29.39066 40.14254 39.35199 30.44506 66.88177 42.22497 101.44850
[7,] 18.54275 18.25267 24.92998 24.43901 18.90749 41.53601 26.22324 63.00320
[8,] 24.43846 24.05615 32.85652 32.20945 24.91917 54.74248 34.56098 83.03522
[9,] 27.09827 26.67434 36.43252 35.71503 27.63130 60.70048 38.32249 92.07251
[10,] 37.11375 36.53313 49.89792 48.91525 37.84378 83.13528 52.48642 126.10236
[11,] 26.06763 25.65982 35.04686 34.35666 26.58038 58.39182 36.86495 88.57066
library(lattice)
wireframe(m)
any ideas?