timeline: Generic function for visualising the sessions on a time...

Description Usage Arguments Examples

Description

Generic function for visualising the sessions on a time versus date plot

Timeline plot for trackeRdata objects.

Timeline plot for trackeRdataSummary objects

Usage

1
2
3
4
5
6
7
timeline(object, lims, ...)

## S3 method for class 'trackeRdata'
timeline(object, lims = NULL, ...)

## S3 method for class 'trackeRdataSummary'
timeline(object, lims = NULL, ...)

Arguments

object

An object of class trackeRdata or trackeRdataSummary.

lims

An optional vector of two times in HH:MM format. Default is NULL If supplied, the times are used to define the limits of the time axis.

...

Arguments passed to summary.trackeRdata.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
data('runs', package = 'trackeR')
## timeline plot applied on the \code{trackeRdata} object directly and with
## inferred limits for the time axis
timeline(runs)

## the same timeline plot applied on the \code{trackeRdataSummary} object
runSummary <- summary(runs)
timeline(runSummary, lims = c('00:01', '23:59'))

## End(Not run)

Example output

Loading required package: zoo

Attaching package:zooThe following objects are masked frompackage:base:

    as.Date, as.Date.numeric


Attaching package:trackeRThe following object is masked frompackage:base:

    append

Warning message:
In `[<-.data.frame`(`*tmp*`, nl, value = list(sport = c("running",  :
  replacement element 1 has 27 rows to replace 26 rows

trackeR documentation built on May 15, 2019, 5:04 p.m.