Description Usage Arguments Details Note Examples
Output and render functions for using trewjb within Shiny applications and interactive Rmd documents.
1 2 3  | JbrowseOutput(outputId, width = "100%", height = "400px")
renderJbrowse(expr, env = parent.frame(), quoted = FALSE)
 | 
outputId | 
 output variable to read from  | 
width, height | 
 Must be a valid CSS unit (like   | 
expr | 
 An expression that generates a trewjb  | 
env | 
 The environment in which to evaluate   | 
quoted | 
 Is   | 
renderJbrowse should return with iframeJbrowse.
It seems that the built-in RStudio viewer does not support iframe element, thus please consider using a web browser instead.
1 2 3 4 5 6 7 8 9 10 11 12 13  | if (interactive() && require(shiny))
shinyApp(
    ui = fluidPage(
        fluidRow(
            JbrowseOutput(outputId = 'test')
        )
    ),
    server = function(input, output) {
        output$test <- renderJbrowse(
            iframeJbrowse('http://www.example.org')
        )
    }
)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.