rhrBBX: Returns the bounding box of a 'RhrTrack*'

Description Usage Arguments Value Examples

View source: R/rhrTrackMethods.R

Description

Returns the bounding box of a RhrTrack*

Usage

1
rhrBBX(x, f, spatial, ...)

Arguments

x

Object of class RhrTrack*.

f

Numeric value, fraction by which the bounding box is extended.

spatial

Logical value, if TRUE a SpatialPolygons object is returned.

...

None implemented.

Value

A matrix with the bounding box.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(trackS)
rhrBBX(trackS)

# Extends the range by 5% to each side
rhrBBX(trackS, 0.05)


# Check that is actually works
bbx <- rhrBBX(trackS)
ext <- apply(bbx, 1, diff)

ext * 1.1
apply(rhrBBX(trackS, 0.05), 1, diff)  

jmsigner/rhr documentation built on June 26, 2020, 8:59 a.m.