as_widget | R Documentation |
Convert a list to a plotly htmlwidget object
as_widget(x, ...)
x |
a plotly object. |
... |
other options passed onto |
trace <- list(x = 1, y = 1)
obj <- list(data = list(trace), layout = list(title = "my plot"))
as_widget(obj)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.