Description Usage Arguments Details Value Examples
profile_plot
generates a mean profile plot for each cluster in
a cluster analysis.
1 | profile_plot(data, cluster = "cluster", type = c("bar", "line"))
|
data |
a data frame. |
cluster |
variable containing cluster membership. |
type |
character. |
The data frame must contain numeric variables for all variables except the cluster variable. The cluster variable can be numeric, character, or factor. The data will be standardized before plotting. The bar charts are faceted, while the line charts are grouped.
a ggplot2 graph
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.