Description Usage Arguments Details Value Examples
View source: R/multipleheatmap.R
Generate heatmap to show activity intensity (in MET) of multiple participants grouped by specified factor (age, gender, etc.).
1 | multipleheatmap(data, demography, f, category = TRUE)
|
data |
Combined csv file from SenseWear with multiple participants, participants are distinguished by ID. Refer to sampledata_multiple.rda for sample format. |
demography |
Demographic data includes the required factor(s) (e.g. age and/or gender) of the corresponding participant. |
f |
The factor (age, gender, etc.) user wants to group data by. |
category |
TRUE or FALSE for categorical factor. Default is TRUE. |
The mean of METs of available days/groups are calculated and used in the heatmap.
Graph
A heatmap generated by ggplot with x axis Time and y axis factor.
Table
A table summarizes the number of records of each participant on each day.
1 2 3 4 | # Continuous factor example
multipleheatmap(sampledata_multiple,demography,Age,category=FALSE)
# Categorical factor example
multipleheatmap(sampledata_multiple,demography,Gender,category=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.