
Last chance! 50% off unlimited learning
Sale ends in
Convert a plotly object to an htmlwidget object
as.widget(x, ...)
a plotly object.
other options passed onto htmlwidgets::createWidget
# NOT RUN {
p <- plot_ly(mtcars, x = mpg, y = disp, mode = "markers")
htmlwidgets::saveWidget(as.widget(p), "index.html")
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab