powered by
Convert a list to a plotly htmlwidget object
as_widget(x, ...)
a plotly object.
other options passed onto htmlwidgets::createWidget
htmlwidgets::createWidget
trace <- list(x = 1, y = 1) obj <- list(data = list(trace), layout = list(title = "my plot")) as_widget(obj)
Run the code above in your browser using DataLab