# Calculate deviations from idealized trajectory
# (straight line connecting the start and end point of each trial)
mt_example <- mt_calculate_deviations(mt_example)
# Calculate deviations from idealized trajectory with
# constant start and end points across trials
mt_example <- mt_calculate_deviations(mt_example,
start_ideal=c(xpos=0,ypos=0), end_ideal=c(xpos=-665,ypos=974))
Run the code above in your browser using DataLab