latencyPlot: Latency plot

Description Usage Arguments Value Examples

View source: R/startle.r

Description

Returns two plots displaying latency in a list. Latency refers to the reaction of the test subject to the startling sound. It is time period from the startling sound to the time stamp of maximal values recorded.

Usage

1
latencyPlot(df, addhead)

Arguments

df

A dataframe returned by loadStartleData function.

addhead

Optional argument. If this argument is used in loadStartleData, set addhead to the value

Value

List with two plots

Examples

1
2
3
4
5
# Load data provided with example
df <- ratpasta_demo

# running examples
l <- latencyPlot(df, addhead = 0.1)

ikodvanj/ratPASTA documentation built on May 29, 2021, 6:34 a.m.