data(PAP.adh1y)
if (require("ggplot2")) {
plotTrajectories(PAP.adh1y, id = "Patient", time = "Biweek", response = "UsageHours")
# plot according to cluster ground truth
plotTrajectories(
PAP.adh1y,
id = "Patient",
time = "Biweek",
response = "UsageHours",
cluster = "Group"
)
}
Run the code above in your browser using DataLab