View source: R/draw_cluster_structure.R
draw_cluster_structure | R Documentation |
This function creates a visual representation of the hierarchical structure
draw_cluster_structure(n, labels = NULL, resp = NULL, output = "tree")
n |
same from cluster_gen |
labels |
corresponds to cluster_labels from cluster_gen |
resp |
corresponds to resp_labels from cluster_gen |
output |
"tree" draws a tree-like structure on the console, "text" prints the structure as a character vector |
Prints structure to console.
This function is useful for checking how a list()
object looks as a hierarchical structure, usually to be used as the n
and/or N
arguments of the cluster_gen
function.
n <- c(2, 4, 3)
draw_cluster_structure(n)
draw_cluster_structure(n, output="text")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.