Output and render functions for using bioheatmap() within Shiny
applications and interactive R Markdown / Quarto documents.
Usage
bioheatmapOutput(output_id, width = "100%", height = "480px")
renderBioheatmap(expr, env = parent.frame(), quoted = FALSE)Arguments
- output_id
Output variable to read from.
- width, height
Element size, passed to
htmlwidgets::shinyWidgetOutput().- expr
An expression that generates a
bioheatmap()widget.- env
The environment in which to evaluate
expr.- quoted
Is
expralready quoted? Defaults toFALSE.
Value
bioheatmapOutput() returns a Shiny output UI element;
renderBioheatmap() returns a Shiny render function.
Examples
if (interactive() && requireNamespace("shiny", quietly = TRUE)) {
ui <- fluidPage(bioheatmapOutput("hm"))
server <- function(input, output) {
output$hm <- renderBioheatmap({
bioheatmap(matrix(rnorm(200), 20, 10))
})
}
shinyApp(ui, server)
}