vtreeOutput | R Documentation |
Shiny bindings for vtree. It is actually a wrapper around grViz
.
vtreeOutput(outputId, width = "100%", height = "100%")
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 |
renderVtree
Other Shiny Functions:
init_js()
,
inlineCssSetup()
,
renderVtree()
,
use_svgzoom()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.