save3jsWidget | R Documentation |
Save a rendered r3js widget to an HTML file (e.g. for sharing with others).
This is mostly a wrapper for saveWidget
.
save3jsWidget(
widget,
file,
title = "r3js plot",
selfcontained = TRUE,
libdir = NULL,
...
)
widget |
Widget to save |
file |
File to save HTML into |
title |
Text to use as the title of the generated page |
selfcontained |
Whether to save the HTML as a single self-contained file (with external resources base64 encoded) or a file with external resources placed in an adjacent directory |
libdir |
Directory to copy HTML dependencies into (defaults to filename_files) |
... |
Further arguments to pass to |
No return value, called for the side-effect of saving the plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.