racePlot | R Documentation |
Race plots of minutes of activity per day, for several activity types
racePlot(summary,title,cex.title,cex.text,cex.center,color)
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 |
A plot is returned.
Jaejoon Song <jjsong2@mdanderson.org>
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.