clustplot: clustplot function

View source: R/plots.R

clustplotR Documentation

clustplot function

Description

multicluster barplot for summarizing cluster solutions

Usage

clustplot(dframe, clusters, varlist, txtcex = 1)

Arguments

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

Examples

clustplot_function()

clmacleod/highlandr documentation built on Oct. 11, 2023, 8:04 p.m.