Evaluates a fitted function or the prediction error as a surface that is suitable for plotting with the image, persp, or contour functions.