Description Usage Arguments Details
Generic method to transform R objects into D3 friendly data.
1 2 3 4 | as_d3_data(x, ...)
## Default S3 method:
as_d3_data(x, ...)
|
x |
data |
... |
Additional arguments for generic methods |
The value returned from as_d3_data()
should be one of:
An R data frame. In this case the HTMLWidgets.dataframeToD3()
JavaScript function will be called on the client to transform
the data into D3 friendly (row-oriented) data; or
A JSON object created using jsonlite::toJSON; or
Any other R object which can be coverted to JSON using jsonlite::toJSON.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.