figuredf: Figure reshaping for plotting purposes

Description Usage Arguments Details Value

Description

Generates a plot-friendly data frame from the list output of flyfigures.

Usage

1
figuredf(fig)

Arguments

figures

a figure list, output of flyfigures

trx

a track data frame

Details

Requires the list format to map each figure to a specific fly (id) and moment (starttime). If the optional argument trx is also passed, all the other attributes attached to trx are also included by merging.

Value

a data frame including x and y values stacked by start (figure start time: constant for each figure and consistent with experimental frame) and step (counter from first to last frame of the figure; start + step should reconstruct data point frame), and labelled with id.


PaolaCognigni/CTraxHelper documentation built on May 7, 2019, 11:57 p.m.