multipleheatmap {PASenseWear}R Documentation

multipleheatmap

Description

Generate heatmap to show activity intensity (in MET) of multiple participants grouped by specified factor (age, gender, etc.).

Usage

multipleheatmap(data, demography, f, category = TRUE)

Arguments

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.

Details

The mean of METs of available days/groups are calculated and used in the heatmap.

Value

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.

Examples

# Continuous factor example
multipleheatmap(sampledata_multiple,demography,Age,category=FALSE)
# Categorical factor example
multipleheatmap(sampledata_multiple,demography,Gender,category=TRUE)

[Package PASenseWear version 1.0 Index]