pagemap-shiny: Shiny bindings for pagemap

Description Usage Arguments See Also Examples

Description

Output and render functions for using pagemap within Shiny applications and interactive Rmd documents.

Usage

1
2
3
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 expr.

quoted

Is expr a quoted expression (with quote())? This is useful if you want to save an expression in a variable.

See Also

pagemap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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())
    }
  )
}

swsoyee/pagemapR documentation built on Sept. 2, 2021, 4:12 p.m.