draw_cluster_structure: Draw Cluster Structure

View source: R/draw_cluster_structure.R

draw_cluster_structureR Documentation

Draw Cluster Structure

Description

This function creates a visual representation of the hierarchical structure

Usage

draw_cluster_structure(n, labels = NULL, resp = NULL, output = "tree")

Arguments

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

Value

Prints structure to console.

Note

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.

Examples

n <- c(2, 4, 3)
draw_cluster_structure(n)
draw_cluster_structure(n, output="text")

tmatta/lsasim documentation built on Aug. 25, 2023, 5:50 p.m.