projection: Projection

Description Usage Arguments Details Author(s) See Also Examples

Description

Functions to manipulate the coordinate reference system (CRS) of ctmm objects

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S4 method for signature 'telemetry'
projection(x,asText=TRUE)

## S4 method for signature 'ctmm'
projection(x,asText=TRUE)

## S4 method for signature 'UD'
projection(x,asText=TRUE)

## S4 replacement method for signature 'telemetry'
projection(x) <- value

## S4 replacement method for signature 'list'
projection(x) <- value

## S3 method for class 'telemetry'
median(x,na.rm=FALSE,...)

Arguments

x

A telemetry, ctmm, or UD object.

asText

If TRUE, the projection is returned as text. Otherwise a CRS object is returned.

value

Projection to apply. Can also be a data.frame of longitude-latitude foci.

na.rm

Not used.

...

Arguments passed to Gmedian.

Details

projection(x) returns the projection information from ctmm object x, while projection(x) <- value applies the projection value to object x. median(x) returns the ellipsoidal geometric median of a telemetry object.

Author(s)

C. H. Fleming

See Also

as.telemetry.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# Load package and data
library(ctmm)
data(buffalo)

# Apply a 1-point projection that preserves North==up
projection(buffalo) <- median(buffalo)
plot(buffalo)

# Apply a 2-point projection better for elongated disributions
projection(buffalo) <- median(buffalo,k=2)
plot(buffalo)
# This is the default projection for ctmm

ctmm-initiative/ctmm documentation built on Aug. 16, 2018, 6:50 a.m.