thigmotaxis: thigmotaxis

Description Usage Arguments Value Examples

View source: R/thigmotaxis.R

Description

thigmotaxis

Usage

1
2
thigmotaxis(df, xleft = 100, xright = -100, ytop = 100,
  ybottom = -100, fr = 30)

Arguments

df

dataframe from get_coords or get_coords habit

xleft

adding x units from the left to calculate thigmotaxis

xright

subtracting x units from the right to calculate thigmotaxis

ytop

adding y units from the top to calculate thigmotaxis

xleft

subtracting y units from the bottom to calculate thigmotaxis

Value

a data frame including Frame, X and Y coordinates, c_dist (center distance), t_dist (thigmotaxis distance), c_time, t_time

Examples

1
2
thigmotaxis(df,xleft=100, xright= -100, ytop =100, ybottom=-100, fr=30)
thigmotaxis(get_coords_habit(df),xleft=50, xright= -50, ytop =50, ybottom=-50, fr=60)

ty14/ezTrackR documentation built on Nov. 5, 2019, 11:02 a.m.