racePlot: Race plots of minutes of activity per day

View source: R/racePlot.R

racePlotR Documentation

Race plots of minutes of activity per day

Description

Race plots of minutes of activity per day, for several activity types

Usage

racePlot(summary,title,cex.title,cex.text,cex.center,color)

Arguments

summary

An object returned from function acc.

title

Title of the plot

cex.title

Font size of the title

cex.text

Font size of the race track labels

cex.center

Font size of the day indicator in the center of the plot

color

Color of the race tracks

Value

A plot is returned.

Author(s)

Jaejoon Song <jjsong2@mdanderson.org>

Examples

## Not run: 
library(acc)
##
## Example: Simulate a dataset for seven days, for an individual with low MVPA level.
##
mvpaModData <- simAcc(timelength=(60*24*7),paLevel='moderate')

summary1 <- acc(data=mvpaModData, tri='FALSE', axis='NULL',
spuriousDef=20, nonwearDef=60, minWear=600,epoch=c('1 min','1 min'),
patype=c('Sedentary','MVPA'),pacut=c(c(0,99),c(1952,Inf)),
boutsize=c(10,10), tolerance=c('FALSE','TRUE'))
summary1

racePlot(summary1,title="Summary of Physical Activity Per Day",
cex.title=1,cex.text=1.2)

## End(Not run)

github-js/acc documentation built on Aug. 21, 2023, 5:40 p.m.