Description Usage Arguments Value Examples
Output and render functions for using TnT within Shiny applications and interactive Rmd documents.
1 2 3 |
outputId |
output variable to read from |
width, height |
Must be a valid CSS unit (like |
expr |
An expression that generates a TnTBoard/TnTGenome object. |
env |
The environment in which to evaluate |
quoted |
Is |
An output or render function that enables the use of the converted htmlwidget within Shiny applications.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | library(shiny)
ui <- fluidPage(fluidRow(
column(width = 2, {
"A Simple Example Here"
}),
column(width = 10, {
TnTOutput("out")
})
))
server <- function (input, output) {
re.btrack <- reactive({
gr <- GRanges("chr12", IRanges(100, 1000))
BlockTrack(gr)
})
output$out <- renderTnT({
TnTBoard(re.btrack())
})
}
## Not run:
shinyApp(ui = ui, server = server)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.