renderVtree: vtree widget

View source: R/shiny.R

renderVtreeR Documentation

vtree widget

Description

Shiny bindings for vtree

Usage

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

Arguments

expr

an expression that generates a variable tree

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.

See Also

vtreeOutput, vtree

Other Shiny Functions: init_js(), inlineCssSetup(), use_svgzoom(), vtreeOutput()

Examples

## Not run: 
library(shiny)
library(vtree)

ui <- fluidPage(
  vtreeOutput("vtree", width = "100%", height = "800px")
)

server <- function(input, output, session) {
  output$vtree <- renderVtree({
    vtree(FakeData,"Severity Sex",
          labelnode=list(Sex=(c("Male"="M","Female"="F"))),
          pngknit=FALSE)
  })
}

shinyApp(ui, server)

## End(Not run)

vtree documentation built on Dec. 11, 2022, 1:05 a.m.