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

看板R_Language作者 (過客)時間5年前 (2020/05/14 18:13), 編輯推噓1(103)
留言4則, 2人參與, 5年前最新討論串1/1
我用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 不知道如何去修正這個警告 或有其他方法嗎? 感謝各位! -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.109.32.9 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/R_Language/M.1589451188.A.0B1.html

05/14 18:54, 5年前 , 1F
那個警告是說offline函數已經被棄用,改使用plot_ly就不會
05/14 18:54, 1F

05/14 18:54, 5年前 , 2F
出現那個警告了。至於要存成離線使用的話,原po可以查查看h
05/14 18:54, 2F

05/14 18:54, 5年前 , 3F
tmlwidgets::saveWidget()
05/14 18:54, 3F

05/15 09:38, 5年前 , 4F
謝謝locka!
05/15 09:38, 4F
文章代碼(AID): #1UlHcq2n (R_Language)
文章代碼(AID): #1UlHcq2n (R_Language)