Learn R Programming

GGIR (version 2.7-1)

g.createcoordinates: Create coordinates for g.plot

Description

Function creates the coordinates for the blocks g.plot Function not designed for direct use by package user.

Usage

g.createcoordinates(r,timeline)

Value

List with two objects: x0 with all the coordinates correspoding to the start of each blocks on the timelines and x1 with all the coordinates corresponding to the end of each block on the timeline

Arguments

r

Vector of zeros and ones reflecting the moments in time when there should be a block (1)

timeline

Vector of time indicators, this can be numbers or actual timestamps The length of timeline needs to match the length of argument r

Author

Vincent van Hees <v.vanhees@accelting.com>