buffer_area.Rd
Buffers the area of a polygon.
buffer_area(df, buffer, close_plg = TRUE, cvars = c("x", "y"))
Data.frame with variables x and y describing the
vertices of the polygon that encircles the area based on which the barcode-spots
are binned. E.g. slot @area of SpatialAnnotation
-objects. Note that the order of
observations in the data.frame must correspond to the order of vertices
of the polygon.
The distance by which to consecutively expand the
area that covers the spatial annotation screening. Given to argument
dist
of function sf::st_buffer()
.
Character vector of length two. The variable names that correspond to the x- and y-coordinates.