Plot distance to centroid over time


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, = c("secs", "mins", "hours", "days")[4], = 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 For example, if vline=3600*24(24 hours), and"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


Want to suggest features or report bugs for Use the GitHub issue tracker. Vote for new features on Trello.

comments powered by Disqus