[問題] 如何將plotly畫出的圖形存成網頁?

作者: easonya (過客)   2020-05-14 18:13:06
我用plotly套件
畫出的3d互動式的圖形
請問要如何存成網頁並指定儲存路徑呢?
plotyly有一個函數offline 似乎符合需求
但實際執行卻會顯示以下警告
Warning messages:
1: 'offline' is deprecated.
Use 'plot_ly' instead.
See help("Deprecated")
2: In RColorBrewer::brewer.pal(N, "Set2") :
minimal value for n is 3, returning requested palette with 3 different
levels
3: In RColorBrewer::brewer.pal(N, "Set2") :
minimal value for n is 3, returning requested palette with 3 different
levels
不知道如何去修正這個警告 或有其他方法嗎? 感謝各位!
作者: locka (locka)   2020-05-14 18:54:00
那個警告是說offline函數已經被棄用,改使用plot_ly就不會出現那個警告了。至於要存成離線使用的話,原po可以查查看htmlwidgets::saveWidget()
作者: easonya (過客)   2020-05-15 09:38:00
謝謝locka!

Links booklink

Contact Us: admin [ a t ] ucptt.com