rasterFromXYVect: Create 'RasterLayer' from the extent of points.

Description Usage Arguments Details

View source: R/rhrRasterFromExtent.R

Description

Function to create an empty RasterLayer from bounding box of points defined by x and y coordinates.

Usage

1
rasterFromXYVect(xy, xrange = NA, yrange = NA, res = 100)

Arguments

xy

A two columned data.frame or matrix containing the x and y coordinates of the points.

xrange, yrange

Optional numeric vector of length providing the range.

res

resolution

Details

Takes x and y coordinates of points as input and creates a RasterLayer with the input coordiantes. The range in either direction can be provided, otherwise it will be obtained from the data.


jmsigner/rhr documentation built on June 26, 2020, 8:59 a.m.