Description Usage Arguments Details See Also Examples

View source: R/lxy.reproject.R

Project or reproject coordinates of a LoCoH-xy object

1 2 | ```
lxy.reproject(lxy, proj, dt.int.round.to = 0.1, tau.diff.max = 0.02,
status = TRUE)
``` |

`lxy` |
A LoCoH-xy object |

`proj` |
Projection object of class |

`dt.int.round.to` |
The proportion of the median sampling frequency that time intervals will be rounded to when computing the frequency table of sampling intervals (no change is made to the time stamps) |

`tau.diff.max` |
The maximum deviation from tau (expressed as a proportion of tau) that a point-to-point time difference must fall within for the point-to-point distance to be included in the calculation of the median step length |

`status` |
Show status messages (T/F) |

This function will reproject the locations to a new coordinate system. In order for this to work,

The coordinate system of the current locations must be recorded. To see the current coordinate system, run

`summary.locoh.lxy`

. To add projection information (which you need to get from the source of the data), use`lxy.proj.add`

.Argument

`proj4string`

which is an object of class`CRS-class`

containing information about the new projection system. A good place to find the proj4 strings for a projection system is http://www.spatialreference.org.

Note that not all coordinate systems can be projected into all other coordinate systems.
If you get an error message like *'non finite transformation detected'*, the coordinate system
you are trying to project into may not be compatible with the existing coordinate system.

`lxy.proj.add`

, `summary.locoh.lxy`

, `CRS`

1 2 3 4 | ```
## Not run:
lxy.utm <- lxy.reproject(lxy, CRS("+proj=utm +north +zone=18 +ellps=WGS84"))
## End(Not run)
``` |

tlocoh documentation built on May 31, 2017, 2 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.