Learn R Programming

lsasim (version 2.1.6)

draw_cluster_structure: 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")

Value

Prints structure to console.

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

Examples

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

Run the code above in your browser using DataLab