This function was deprecated in 4.0.0, as plotly objects are now htmlwidget objects, so there is no need to convert them.

as.widget(x, ...)

Arguments

x

a plotly object.

...

other options passed onto htmlwidgets::createWidget