Output and render functions for using volcano() within Shiny applications
and interactive R Markdown / Quarto documents.
Usage
volcanoOutput(output_id, width = "100%", height = "480px")
renderVolcano(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
volcano()widget.- env
The environment in which to evaluate
expr.- quoted
Is
expralready quoted? Defaults toFALSE.
Value
volcanoOutput() returns a Shiny output UI element;
renderVolcano() returns a Shiny render function.
Examples
if (interactive() && requireNamespace("shiny", quietly = TRUE)) {
ui <- fluidPage(volcanoOutput("v"))
server <- function(input, output) {
output$v <- renderVolcano({
volcano(data.frame(x = rnorm(100), y = abs(rnorm(100)) * 3))
})
}
shinyApp(ui, server)
}