CorrMixed (version 0.1-1)

Heatmap: Plot a heatmap of the correlation structure

Description

This function plots a heatmap of the correlation structure (reliability) in the data. It is a wrapper function for the cor.plot function of the psych package (for details see http://cran.r-project.org/web/packages/psych/index.html).

Usage

Heatmap(Dataset, Id, Outcome, Time, ...)

Arguments

Dataset
A data.frame that should consist of multiple lines per subject ('long' format).
Id
The subject indicator.
Outcome
The outcome indicator.
Time
The time indicator.
...
Other arguments to be passed to cor.plot.

References

Van der Elst, W., Molenberghs, G., Hilgers, R., & Heussen, N. (2015). Correlation in continuous monitoring of vital parameters I - estimating reliability using linear mixed-effects models. Submitted.

See Also

plot.Explore.WS.Corr

Examples

Run this code
# Open data
data(Example.Data)

# Make heatmap
Heatmap(Dataset=Example.Data, Id = "Id", 
Outcome="Outcome", Time = "Time")

# Make heatmap in black and white
Heatmap(Dataset=Example.Data, Id = "Id", 
Outcome="Outcome", Time = "Time", colors=FALSE)

Run the code above in your browser using DataCamp Workspace