作者easonya (过客)
看板R_Language
标题[问题] 如何将plotly画出的图形存成网页?
时间Thu May 14 18:13:06 2020
我用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://webptt.com/cn.aspx?n=bbs/R_Language/M.1589451188.A.0B1.html
1F:推 locka: 那个警告是说offline函数已经被弃用,改使用plot_ly就不会 05/14 18:54
2F:→ locka: 出现那个警告了。至於要存成离线使用的话,原po可以查查看h 05/14 18:54
3F:→ locka: tmlwidgets::saveWidget() 05/14 18:54
4F:→ easonya: 谢谢locka! 05/15 09:38