Arguments
map
A ggplot2 object (used only to obtain plot limits)
xy
List of coordinates of spatial objects
dat
A data surface (which may be irregular) used to provide the
z-values for the resultant data frame.
bg
background colour from 'add_osm_surface()', passed here only to
confirm whether it is given or missing
grid_size
Size of interpolation grid as taken from 'add_osm_surface()'
method
Either 'idw' (Inverse Distance Weighting as spatstat::idw;
default), otherwise uses 'Gaussian' for kernel smoothing (as
spatstat::Smooth.ppp)