如何在 R 中将 arulesViz 图转换为 htmlwidget
How to convert arulesViz plot to htmlwidget in R
我们正在使用 R 的 aluresViz 包。该包提供函数 plot()。该函数有参数 interactive = TRUE ,这使它具有交互性,因此我们想将此交互转换为 html 小部件。在这里我们使用此方法..它不起作用。
htmlwidgets::saveWidget(p, plotlyoutput, selfcontained = FALSE)
示例:
作为一个图像它工作
# save a plot as a html page
p <- plotly_arules(rules)
htmlwidgets::saveWidget(p, "arules.html", selfcontained = FALSE)
browseURL("arules.html")
# interactive matrix visualization
plotly_arules(rules, method = "matrix")
我们正在使用 R 的 aluresViz 包。该包提供函数 plot()。该函数有参数 interactive = TRUE ,这使它具有交互性,因此我们想将此交互转换为 html 小部件。在这里我们使用此方法..它不起作用。
htmlwidgets::saveWidget(p, plotlyoutput, selfcontained = FALSE)
示例:
作为一个图像它工作
# save a plot as a html page
p <- plotly_arules(rules)
htmlwidgets::saveWidget(p, "arules.html", selfcontained = FALSE)
browseURL("arules.html")
# interactive matrix visualization
plotly_arules(rules, method = "matrix")