powered by
Plot a lcModel object. By default, this plots the cluster trajectories of the model, along with the training data.
lcModel
# S4 method for lcModel plot(x, y, ...)
The lcModel object.
Not used.
Arguments passed on to plotClusterTrajectories
plotClusterTrajectories
object
The (cluster) trajectory data.
A ggplot object.
ggplot
plotClusterTrajectories plotFittedTrajectories plotTrajectories ggplot2::ggplot
# NOT RUN { data(latrendData) method <- lcMethodLMKM(Y ~ Time, id = "Id", time = "Time") model <- latrend(method, latrendData, nClusters = 3) if (require("ggplot2")) { plot(model) } # }
Run the code above in your browser using DataLab