Learn R Programming

raptr (version 0.0.1)

blank.raster: Blank raster

Description

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.

Examples

Run this code
# make SpatialPolygons
polys <- sim.pus(225L)
# make RasterLayer from SpatialPolygons
blank.raster(polys, 1)

Run the code above in your browser using DataLab