Plot a lcModel object. By default, this plots the cluster trajectories of the model, along with the trajectories used for estimation.

# S4 method for class 'lcModel,ANY'
plot(x, y, ...)

Arguments

x

The lcModel object.

y

Not used.

...

Arguments passed on to plotClusterTrajectories

object

The (cluster) trajectory data.

Value

A ggplot object.

Examples

data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, latrendData, nClusters = 3)

if (require("ggplot2")) {
  plot(model)
}