Interpolate using inverse distance weighting.
interpolateIDW(points, attr)
points
A SpatialPointsDataFrame object.
attr
A string. Name of the field with values to interpolate.
A RasterLayer.