ld_cc_dendro: Show the list of Computational Components as a Dendrogram

View source: R/cc-dendro.r

ld_cc_dendroR Documentation

Show the list of Computational Components as a Dendrogram

Description

This function creates text dendrograms from a list of computational components. It is useful for creating a dendrogram of the the computational components of a listdown object allowing the user to view the components hierarchically.

Usage

ld_cc_dendro(x)

Arguments

x

a named list of computational components

Value

A string, with class 'ld_cc_dendro', that shows the hierarchical structure of the computational components (a list).

Examples

if (require("ggplot2")) {

  cc_list <- list(
    Linear = ggplot(anscombe, aes(x = x1, y = y1)) + geom_point(),
   `Non Linear` = ggplot(anscombe, aes(x = x2, y = y2)) + geom_point(),
   `Outlier Vertical`= ggplot(anscombe, aes(x = x3, y = y3)) + geom_point(),
   `Outlier Horizontal` =  ggplot(anscombe, aes(x = x4, y = y4)) +
     geom_point())

  ld_cc_dendro(cc_list)
}

listdown documentation built on April 3, 2023, 5:42 p.m.