Learn R Programming

vtree (version 5.6.5)

vtreeOutput: 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

Run this code
if (FALSE) {
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)
}

Run the code above in your browser using DataLab