Black Lives Matter. Please consider donating to Black Girls Code today.

Save visualization as html file via code

htmlwidgets::saveWidget(as.widget(p), "test.html")

Warning message:
‘as.widget’ is deprecated.
Use ‘plot_ly’ instead.
See help(“Deprecated”)

For anyone using the above line of code to save output as html widget. Change the code to…

htmlwidgets::saveWidget(p, "test.html")
1 Like