powered by
Constructs tours of data space based on centers of clusters
kmeansPath(data, length = 10, reorder = TRUE, conditionvars = NULL, ...)pamPath( data, length = 10, reorder = TRUE, conditionvars = NULL, maxn = 4000, ... )claraPath(data, length = 10, reorder = TRUE, conditionvars = NULL, ...)medoidPath(data, cl, reorder = FALSE)centroidPath(data, cl, reorder = FALSE)
pamPath( data, length = 10, reorder = TRUE, conditionvars = NULL, maxn = 4000, ... )
claraPath(data, length = 10, reorder = TRUE, conditionvars = NULL, ...)
medoidPath(data, cl, reorder = FALSE)
centroidPath(data, cl, reorder = FALSE)
A dataframe with the path
A dataframe
Path length, defaults to 10
If TRUE uses DendSer to reorder the path dser
dser
A vector of variable names. The returned tour is for this subset of variables.
ignored
(pamPath only) For datasets with more than maxn rows, use maxn randomly selected rows.
A vector specifying cluster membership for rows of data.
kmeansPath: Constructs a tour of data space following length k-means centroids
kmeansPath
pamPath: Constructs a tour of data space following length pam medoids
pamPath
pam
claraPath: Constructs a tour of data space following length clara medoids
claraPath
clara
medoidPath: Returns a path visiting cluster medoids
medoidPath
centroidPath: Returns a path visiting cluster centroids
centroidPath
kmeansPath(mtcars,length=4) pamPath(mtcars,length=4) claraPath(mtcars,length=4) medoidPath(mtcars,cl=rep(1:3, length.out=nrow(mtcars)))
Run the code above in your browser using DataLab