vtreeOutput: vtree widget

View source: R/shiny.R

vtreeOutputR Documentation

vtree widget

Description

Shiny bindings for vtree. It is actually a wrapper around grViz.

Usage

vtreeOutput(outputId, width = "100%", height = "100%")

Arguments

outputId

output variable to read from

width, height

must be a valid CSS unit in pixels or a number, which will be coerced to a string and have "px" appended.

See Also

renderVtree

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

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.