Description Usage Arguments Value Examples

Internal function to construct plot area around coordinates

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ```
construct_buffer(coords, shape, size, return_sp, verbose)
## S3 method for class 'SpatialPoints'
construct_buffer(coords, shape, size,
return_sp = TRUE, verbose = TRUE)
## S3 method for class 'SpatialPointsDataFrame'
construct_buffer(coords, shape, size,
return_sp = TRUE, verbose = TRUE)
## S3 method for class 'MULTIPOINT'
construct_buffer(coords, shape, size,
return_sp = TRUE, verbose = TRUE)
## S3 method for class 'POINT'
construct_buffer(coords, shape, size, return_sp = TRUE,
verbose = TRUE)
## S3 method for class 'sf'
construct_buffer(coords, shape, size, return_sp = TRUE,
verbose = TRUE)
## S3 method for class 'sfc'
construct_buffer(coords, shape, size, return_sp = TRUE,
verbose = TRUE)
## S3 method for class 'matrix'
construct_buffer(coords, shape, size, return_sp = TRUE,
verbose = TRUE)
``` |

`coords` |
SpatialPoints or 2-column matrix with coordinates of sample points |

`shape` |
String specifying plot shape. Either "circle" or "square" |

`size` |
Size of sample plot. Equals the radius for circles or the side-length for squares in mapunits |

`return_sp` |
If true, SpatialPolygons are returned. |

`verbose` |
Print warning messages. |

matrix or SpatialPolygons

1 2 | ```
coords <- matrix(c(10, 5, 25, 15, 5, 25), ncol = 2, byrow = TRUE)
construct_buffer(coords = coords, shape = "square", size = 5)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.