Description Usage Arguments Details Author(s) Examples
The spTransform function transforms the coordinates stored in the Move object from the default longlat coordinates to the default aeqd (Azimuthal Equi-distance) projection or a different projection.
1 2 3 4 | ## S4 method for signature 'Move,character'
spTransform(x,CRSobj,center=FALSE)
## S4 method for signature 'Move,missing'
spTransform(x,center=FALSE,...)
|
x |
a Move or a MoveStack object |
CRSobj |
a CRS like character that describes the projection method to which the coordinates should be transformed, if missing |
center |
logical, if TRUE the center of the coordinate system is the center of the track; FALSE is default |
... |
for additional arguments |
The spTransform function transforms the coordinates of a Move object by default from "+proj=longlat"
to "+proj=aeqd"
. In this format the coordinates can be used by the brownian.bridge.dyn
function.
If center
is TRUE the center of the coordinate system is set to the center of the track.
Marco Smolla
1 2 3 4 5 6 7 8 9 10 11 | ## create a Move object
data(leroy)
## transform the Move object by default into "+aeqd" projection method
## and center the coordinate system
spTransform(leroy, center=TRUE)
## transform the Move object into another projection method, like mollweide
spTransform(leroy, CRSobj="+proj=moll +ellps=WGS84")
##check projection method
proj4string(leroy)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.