Resize a bounding box object by a scale factor or buffer distance

bbox_resize(x, scale = NULL, buff = NULL)

Arguments

x

bbox object

scale

scale factor

buff

buffer distance

Details

You can resize a bounding box by passing a value for scale or buff, but not both.

Use scale to resize the bounding box with a scale factor. Values of scale < 1 will result in a smaller bounding box, values > 1 will result in a larger bounding box. The centroid will remain the same. If you pass two values for scale, they'll be used to scale the x and y dimensions respectively

Use buff to resize the bounding box with a fixed distance. buff should be in a map units. Values of buff < 0 will result in a smaller bounding box. Values > 0 will result in a larger bounding box. If you pass two values for buff, they'll be used to buffer the x and y dimensions respectively