This functions creates a blank raster based on the spatial extent of a Spatial object.
Usage
blank.raster(x, res)
Arguments
x
Spatial* object.
res
numeric vector specifying resolution of the output raster in the x and y dimensions. If vector is of length one, then the pixels are assumed to be square.