bbox | R Documentation |
Functions to calculate bounding box of an object.
bbox(x, ...)
## Default S3 method:
bbox(x, y, ...)
## S3 method for class 'polygon'
bbox(p, ...)
bbox(default)
: Calculate the bounding box coordinates for a set of coordinate points.
bbox(polygon)
: Calculate surface area of a polygon using its vertex coordinates.
x <- c(0, 0, 0.5, 1, 1, 0)
y <- c(0, 1, 0.5, 1, 0, 0)
bbox(x, y) # Calculate area of polygon.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.