build_tree {muir}R Documentation

Build dynamic tree using DiagrammeR and muir-generated data frame

Description

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

Usage

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.


[Package muir version 0.1.0 Index]