vtreeOutput {vtree} | R 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 |
See Also
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)
[Package vtree version 5.6.5 Index]