Learn R Programming

latrend (version 1.2.1)

qqPlot: Quantile-quantile plot

Description

Plot the quantile-quantile (Q-Q) plot for the fitted lcModel object. This function is based on the qqplotr package.

Usage

# S4 method for lcModel
qqPlot(object, byCluster = FALSE, ...)

Arguments

object

The lcModel object.

byCluster

Whether to plot the Q-Q line per cluster

Value

A ggplot object.

See Also

residuals.lcModel metric plotClusterTrajectories

Examples

Run this code
# NOT RUN {
data(latrendData)
model <- latrend(lcMethodLcmmGMM(fixed = Y ~ Time, mixture = ~ Time,
   id = "Id", time = "Time"), data = latrendData)
qqPlot(model)
# }

Run the code above in your browser using DataLab