clustplot | R Documentation |
multicluster barplot for summarizing cluster solutions
clustplot(dframe, clusters, varlist, txtcex = 1)
dframe |
the data frame you wish to create the plot for. the dataframe must contain 3 elements. 1.) first column must contain the unique identifiers. 2.) there must be one or more of the raw data variables. 3.) there must be at least one cluster variable of the format 'hkclust' followed by a number (e.g. 'hkclust5' would be a 5 cluster solution). |
clusters |
number of clusters you want to create the plot for. there must be a variable corresponding to this number with the format hkclust (e.g. if you put '5' here there must be a variable named 'hkclust5'- element 3 above) |
varlist |
the list of variable used for the clustering (this is the raw data-element 2 above) |
txtcex |
scale variable for text |
clustplot_function()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.