treeOutput: Helper Functions for Using Shinytree in Shiny

Description Usage Arguments Examples

View source: R/inputs-shiny.R

Description

These functions are like most fooOutput() and renderFoo() functions in the shiny package. The former is used to create a container for a tree, and the latter is used in the server logic to render the tree.

Usage

1
2
3
treeOutput(outputId, width = "100%", height = "100%")

renderTree(expr, env = parent.frame(), quoted = FALSE)

Arguments

outputId

The output slot that will be used to access the values.

width

The width of the input container, e.g., '100%'; see validateCssUnit.

height

The height of the input container, e.g., '200px'; see validateCssUnit.

expr

An expression to create a tree widget (via tree()), or a data object to be passed to tree() to create a tree widget.

env

The environment in which to evaluate expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

Examples

1
inst/examples/tree.R

stefanieschneider/shinytree documentation built on June 29, 2020, 4:17 a.m.