plot_lag_cor: Plot lag correlations

Description Usage Arguments Details Value

View source: R/tracks_plots.R

Description

This function produces a ggplot that shows how the lag correlations changes over time for each trial. Tries to do clever facetting. Will show all pairs in the data, but if all trials contain only one pair, will only show pair 1,2 (and not 2,1).

Usage

1

Arguments

data

The result from a lag correlation function (e.g. calc_speed_lag).

Details

The y-axis shows time bins (top to bottom), the x-axis shows the lag in frames and the size (area) of the dots denotes strength of the correlation (*r*).

Value

A ggplot object.


Ax3man/trackr documentation built on Oct. 8, 2019, 10:53 p.m.