allActograms: Generate actograms

Description Usage Arguments Value Examples

View source: R/allActograms.R

Description

This function generates a composite figure with actograms for all flies in a DAM scanned monitor file. Input for this function must be an output from the binData() function. The output of this function is a large plotly object. This function requires the packages "plotly" and "zoo".

Usage

1
allActograms(data, bin = 30, t.cycle = 24)

Arguments

data

Input data file. The input for this function must be the output of the function binData(). See ??binData().

bin

Intervals in which data are saved (in minutes). This defaults to 30.

t.cycle

Define the period of the environmental cycle or a single day in hours. This defaults to 24.

Value

A plotly htmlwidget with 32 actograms in a 4-by-8 array.

Examples

1
2
3
4
td <- trimData(data = df, start.date = "19 Dec 20", start.time = "21:00",
n.days = 3, bin = 1, t.cycle = 24)
bd <- binData(data = td)
actograms <- allActograms(data = bd)

phase documentation built on Aug. 17, 2021, 1:06 a.m.

Related to allActograms in phase...