powered by
This function creates a visual representation of the hierarchical structure
draw_cluster_structure(n, labels = NULL, resp = NULL, output = "tree")
Prints structure to console.
same from cluster_gen
corresponds to cluster_labels from cluster_gen
corresponds to resp_labels from cluster_gen
"tree" draws a tree-like structure on the console, "text" prints the structure as a character vector
n <- c(2, 4, 3) draw_cluster_structure(n) draw_cluster_structure(n, output="text")
Run the code above in your browser using DataLab