Learn R Programming

latrend (version 1.3.0)

plotFittedTrajectories: Plot fitted trajectories of a lcModel

Description

Plot fitted trajectories of a lcModel

Usage

# S4 method for lcModel
plotFittedTrajectories(object, ...)

Arguments

object

The lcModel object.

...

Arguments passed on to trajectories

id

The identifier variable name.

time

The time variable name.

response

The response variable name.

See Also

fittedTrajectories plotClusterTrajectories plotTrajectories plot

Examples

Run this code
# NOT RUN {
data(latrendData)
method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time")
model <- latrend(method, latrendData, nClusters = 3)

if (require("ggplot2")) {
  plotFittedTrajectories(model)
}
# }

Run the code above in your browser using DataLab