lxy.plot.pt2ctr: Plot distance to centroid over time

Description Usage Arguments Note See Also


Produces a plot of the distance of each point to the centroid over time to see 'natural' periodicities in the data


lxy.plot.pt2ctr(lxy, id = NULL, idx = NULL, vline = NULL,
  vline.trunc.units.to = c("secs", "mins", "hours", "days")[4],
  figs.per.page = NULL, ...)



A LoCoH-xy object


The id value(s) to include on the plot


An optional vector of indices of points that the plot will be restricted to. See notes


An interval of time (in seconds) for the vertical grid lines


A character value: "secs", "mins", "hours", or "days". Determines where the first vertical grid lines will appear


The number of figures per page


Additional parameters that will be passed to the plot function


The purpose of this graph is to help see the 'natural' movement cycles in a dataset, when no a priori information exists that helps identify the time scale of interest. In T-locoh, defining the timescale of interest helps to select a value for s.

To 'zoom in' to a section of the timeline, pass a value for idx. For example, if there are 5000 points in the dataset

If a value is passed for vline, the first vertical line will coincide with a multiple of vline.trunc.units.to. For example, if vline=3600*24(24 hours), and vline.trunc.units.to="days", the first vertical line will be the beginning of a day regardless of when the point series started. This can be helpful for seeing cycles of a specific frequency.

See Also


Search within the tlocoh package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.