as_widget
From plotly v4.5.2
by Carson Sievert
Convert a list to a plotly htmlwidget object
Convert a list to a plotly htmlwidget object
Usage
as_widget(x, ...)
Arguments
- x
a plotly object.
- ...
other options passed onto
htmlwidgets::createWidget
Examples
library(plotly)
# NOT RUN {
trace <- list(x = 1, y = 1)
obj <- list(data = list(trace), layout = list(title = "my plot"))
as_widget(obj)
# }
Community examples
Looks like there are no examples yet.