Learn R Programming

latrend (version 1.2.1)

plot-lcModel-method: Plot a lcModel

Description

Plot a lcModel object. By default, this plots the cluster trajectories of the model, along with the training data.

Usage

# S4 method for lcModel
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.

See Also

plotClusterTrajectories plotFittedTrajectories plotTrajectories ggplot2::ggplot

Examples

Run this code
# NOT RUN {
data(latrendData)
model <- latrend(method = lcMethodKML("Y", id = "Id", time = "Time"), latrendData)
plot(model)
# }

Run the code above in your browser using DataLab