Learn R Programming

acc (version 1.3.3)

racePlot: 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.

Examples

Run this code
## 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)

Run the code above in your browser using DataLab