powered by
Plot the quantile-quantile (Q-Q) plot for the fitted lcModel object. This function is based on the qqplotr package.
lcModel
# S4 method for lcModel qqPlot(object, byCluster = FALSE, ...)
A ggplot object.
ggplot
The lcModel object.
Whether to plot the Q-Q line per cluster
Additional arguments passed to qqplotr::geom_qq_band(), qqplotr::stat_qq_line(), and qqplotr::stat_qq_point().
qqplotr::geom_qq_band()
qqplotr::stat_qq_line()
qqplotr::stat_qq_point()
residuals.lcModel metric plotClusterTrajectories
data(latrendData) method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time", nClusters = 3) model <- latrend(method, latrendData) if (require("ggplot2") && require("qqplotr")) { qqPlot(model) }
Run the code above in your browser using DataLab