powered by
Ensures a proper cluster assignments factor vector
Generates the requested number of cluster names. Uses the vector returned by getOption("latrend.clusterNames"), which returns the alphabet by default.
getOption("latrend.clusterNames")
make.clusterSizeLabels generates cluster labels for the given input
make.clusterSizeLabels
make.clusterPropLabels generates cluster labels for the given input
make.clusterPropLabels
make.trajectoryAssignments(object, clusters)make.clusterIndices(object, clusters)make.clusterNames(n)make.clusterSizeLabels(clusterNames, sizes)make.clusterPropLabels(clusterNames, sizes)
make.clusterIndices(object, clusters)
make.clusterNames(n)
make.clusterSizeLabels(clusterNames, sizes)
make.clusterPropLabels(clusterNames, sizes)
Factor cluster assignments.
A cluster assignments index vector of type integer.
integer
A character vector length n with the cluster names.
character
n
The lcModel object.
lcModel
The unprocessed trajectory cluster assignment vector.
The number of clusters.
Names of the clusters
Sizes of the respective clusters; the number of ids
The latrend.clusterNames option may also return a function with signature (n), returning a vector of names of the correct length.
latrend.clusterNames
(n)
make.clusterSizeLabels(c('A', 'B'), c(10, 20)) make.clusterPropLabels(c('A', 'B'), c(10, 20))
Run the code above in your browser using DataLab