view_static
creates a static web page in a temporary directory;
view_dynamic
generate a dynamic shiny app and launches it.
print
automatically picks between the two.
1 2 3 4 5 6 7 | ## S3 method for class 'ggvis'
print(x, dynamic = NA, launch = interactive(), ...)
view_static(x, plot_id = rand_id("plot_"), dest = tempfile(pattern =
"ggvis"))
view_dynamic(x, plot_id = rand_id("plot_"), port = NULL, quiet = FALSE)
|
x |
A ggvis object. |
dynamic |
Uses |
launch |
If |
... |
Other arguments passed on to |
plot_id |
Unique identifier used to identify the plot on the page. |
dest |
Directory in which to save html and depedencies. Created if it doesn't already exist. |
port |
the port on which to start the shiny app. If NULL (the default), Shiny will select a random port. |
quiet |
If |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.