bbox | R Documentation |
Get bounding box of a track.
bbox(x, ...)
## S3 method for class 'track_xy'
bbox(x, spatial = TRUE, buffer = NULL, ...)
## S3 method for class 'steps_xy'
bbox(x, spatial = TRUE, buffer = NULL, ...)
x |
|
... |
Further arguments, none implemented. |
spatial |
|
buffer |
|
If spatial = FALSE
a named vector of length four with the extent of the bounding box. Otherwise a SpatialPolygon
or a simple freature polygon with the bounding box.
data(deer)
bbox(deer)
bbox(deer, spatial = FALSE)
bbox(deer, buffer = 100, spatial = FALSE)
# For steps
deer |> steps_by_burst() |> bbox(spatial = FALSE)
deer |> steps_by_burst() |> bbox(buffer = 100, spatial = FALSE)
deer |> steps_by_burst() |> random_steps() |> bbox(spatial = FALSE)
# Further manipulations are possible
deer |> bbox() |> sf::st_transform(4326)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.