if (FALSE) {
library(shiny)
library(vtree)
ui <- fluidPage(
use_svgzoom(),
helpText(div(style="font-weight: 800; font-size: large; color: black;",
HTML("Zooming and Panning is possible with mouse-drag ",
"and mouse-wheel , or with shortcuts;",
" +,- and arrow-keys and CTRL+Backspace to",
" resize+fit+center the svg.."))),
vtreeOutput("vtree", width = "100%", height = "500px")
)
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