pagemap-shiny {pagemap} | R Documentation |
Shiny bindings for pagemap
Description
Output and render functions for using pagemap within Shiny applications and interactive Rmd documents.
Usage
pagemapOutput(outputId, width = "100%", height = "auto")
renderPagemap(expr, env = parent.frame(), quoted = FALSE)
Arguments
outputId |
output variable to read from. |
width , height |
Fixed width for pagemap (in css units). Ignored when used in a Shiny app. It is not recommended to use this parameter because the widget knows how to adjust its width automatically. |
expr |
An expression that generates a pagemap |
env |
The environment in which to evaluate |
quoted |
Is |
See Also
Examples
library(shiny)
## Only run this example in interactive R sessions
if (interactive()) {
shinyApp(
ui = fluidPage(pagemapOutput("pagemap")),
server = function(input, output) {
output$pagemap <- renderPagemap(pagemap())
}
)
}
[Package pagemap version 0.1.3 Index]