Description Usage Arguments Value Examples
map an R list object into a string containing javascript code representation of an object
1 | toJSObject(x)
|
x |
a list that will map to an object literal. E.g., list(a=1, b="a") goes to a:1, b:'a' |
a string with the list formatted as code to produce a JavaScript object
1 2 3 4 5 6 7 | arg_list <- list(
tooltip = "some tooltip",
width = 200,
height = "auto",
id = String("noquote")
)
toJSObject(arg_list)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.