build_tree: Build dynamic tree using DiagrammeR and muir-generated data...

Description Usage Arguments Value

View source: R/build_tree.R

Description

This function allows users to easily and dynamically explore or document a dataset using a tree structure.

Usage

1
build_tree(data, tree.dir = "LR", tree.height = NULL, tree.width = NULL)

Arguments

data

A muir-generated data frame to be processed into a tree using DiagrammeR

tree.dir

Direction of tree graph. Use either "LR" for left-to-right, "RL" for right-to left, "TB" for top-to-bottom, or "BT" for bottom-to-top.

tree.height

Control tree height to zoom in/out on nodes. Defaults to NULL

tree.width

Control tree width to zoom in/out on nodes. Defaults to NULL

Value

An object of class htmlwidget (via DiagrammeR)that will intelligently print itself into HTML in a variety of contexts including the R console, within R Markdown documents, and within Shiny output bindings.


muir documentation built on May 2, 2019, 3:31 p.m.