indActogram | R Documentation |
Allows users to generate individual actograms. The input for this function must be the output of the binData() function. The output of this function is a plotly object.
indActogram(
data,
bin = 30,
t.cycle = 24,
ind = 1,
key.acto = 1,
color = rgb(0, 0, 0, 1)
)
data |
Input data file. The input for this function must be the output of the function binData(). See ??binData(). |
bin |
Define the bin size (in minutes) in which input data is saved. |
t.cycle |
Define the period of the environmental cycle or a single day in hours. This defaults to 24. |
ind |
The channel number (or individual) whose actogram must be plotted. |
key.acto |
Key for reactive input tables in the shiny app. |
color |
Color of actograms in rgb format. The input for this must be a vector with 4 values, i.e., r,g,b,transparency. The values for r,g,b can only be between 0 and 1. 0,0,0 would be black and 1,1,1 would be white. Transparency values can also go from 0 to 1, 0 being fully transparent and 1 being fully opaque. |
A plotly
htmlwidget
with the actogram of a user defined fly.
## Not run:
td <- trimData(data = df, start.date = "19 Dec 20", start.time = "21:00",
n.days = 10, bin = 1, t.cycle = 24)
bd <- binData(td)
ind.actogram <- indActogram(data = bd, bin = 30, ind = 2)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.