Output and render functions for using threejs widgets within Shiny applications and interactive Rmd documents.
1 2 3 4 5 6 7 | globeOutput(outputId, width = "100%", height = "600px")
renderGlobe(expr, env = parent.frame(), quoted = FALSE)
scatterplotThreeOutput(outputId, width = "100%", height = "500px")
renderScatterplotThree(expr, env = parent.frame(), quoted = FALSE)
|
outputId |
output variable to read from |
width, height |
Must be a valid CSS unit (like |
expr |
An expression that generates threejs graphics. |
env |
The environment in which to evaluate |
quoted |
Is |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.