Learn R Programming

radiant (version 0.1.95)

plot.hier_clus: Plot method for the hier_clus function

Description

Plot method for the hier_clus function

Usage

"plot"(x, hc_plots = c("scree", "diff"), hc_cutoff = 0.02, shiny = TRUE, ...)

Arguments

x
Return value from hier_clus
hc_plots
Plots to return. "diff" shows the percentage change in within-cluster heterogeneity as respondents are group into different number of clusters, "dendro" shows the dendrogram, "scree" shows a scree plot of within-cluster heterogeneity
hc_cutoff
For large datasets plots can take time to render and become hard to interpret. By selection a cutoff point (e.g., 0.05 percent) the initial steps in hierachical cluster analysis are removed from the plot
shiny
Did the function call originate inside a shiny app
...
further arguments passed to or from other methods

Details

See http://vnijs.github.io/radiant/marketing/hier_clus.html for an example in Radiant

See Also

summary.hier_clus to summarize results

plot.hier_clus to plot results

Examples

Run this code
result <- hier_clus("shopping", hc_vars = c("v1:v6"))
plot(result, hc_plots = c("diff", "scree"), hc_cutoff = .05)
plot(result, hc_plots = "dendro", hc_cutoff = 0)

Run the code above in your browser using DataLab