diffr2Output | R Documentation |
Use diffr2Output()
to create a UI element, and renderDiffr2()
to render the diffr2 widget.
diffr2Output(outputId, width = "100%", height = "400px")
renderDiffr2(expr, env = parent.frame(), quoted = FALSE)
outputId |
output variable to read from |
width , height |
the width and height of the diffr2 widget |
expr |
An expression that generates an HTML widget (or a promise of an HTML widget). |
env |
The environment in which to evaluate |
quoted |
Is |
When calling renderDiffr2()
make sure that divname
matches the selected shiny output name. The div name is used to attach the
diff2html output. Otherwise the canvas will be blank.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.