Fit a GAM smooth across scalp.

gam_topo(data, scaled_x, scaled_y, grid_res)

Arguments

data

Data frame from which to generate predictions

scaled_x

x coordinates rescaled

scaled_y

y coordinates rescaled

grid_res

resolution of output grid