R code for analysis and summary of movement trajectories