save3js: Save an r3js plot to an HTML file

View source: R/3JSutils.R

save3jsR Documentation

Save an r3js plot to an HTML file

Description

Converts r3js plot data to a widget and saves it to an HTML file (e.g. for sharing with others)

Usage

save3js(
  data3js,
  file,
  title = "r3js plot",
  selfcontained = TRUE,
  libdir = NULL,
  ...
)

Arguments

data3js

The r3js data object to be saved

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 r3js()

Value

No return value, called for the side-effect of saving the plot.


r3js documentation built on March 31, 2023, 7:23 p.m.