Learn R Programming

lidaRtRee (version 4.0.8)

circle2Raster: Raster corresponding to circle extent

Description

Creates an empty raster which extents corresponds to the circle specified by center coordinates, radius and optional buffer size.

Usage

circle2Raster(X, Y, radius, resolution = 0.5, buffer = 0.5, ...)

Value

A SpatRaster object

Arguments

X

numeric. easting coordinate of plot center in meters

Y

numeric. northing coordinate of plot center in meters

radius

numeric. plot radius in meters

resolution

numeric. raster resolution in meters

buffer

numeric. buffer to be added to plot radius in meters

...

other parameters to pass to rast (e.g. crs)

Examples

Run this code
circle2Raster(100, 100, 20, 1, 5)

Run the code above in your browser using DataLab