powered by
Performs a k-means cluster analysis on the basis of the word-occurrence data.frame using kmeans function.
kmeans
doKmeansClust( wordF, nbClust = 4, nbIter = 10, algo = "Hartigan-Wong", getPlot = TRUE, mwidth = 800, mheight = 800, formatType = "png", ... )
An object of class kmeans (see kmeans).
The data.frame containing word occurrences.
The number of clusters.
The number of iterations allowed.
The algoritm used (see kmeans).
If TRUE, save the k-means cluster plot in the RESULTS directory.
TRUE
The width of the plot in pixels.
The height of the plot in pixels.
The format for the output file ("eps", "pdf", "png", "svg", "tiff", "jpeg", "bmp").
Additional arguments from the kmeans function.
data("wordOccuDF") doKmeansClust(wordF = wordOccuDF, nbClust = 2, getPlot = FALSE)
Run the code above in your browser using DataLab