我正在尝试可视化“杂货”数据集。
library(arules)
library(arulesViz)
library(datasets)
rules <- apriori(Groceries, parameter = list(supp = 0.001, conf = 0.75))
rules<-sort(rules, decreasing=TRUE,by="confidence")
plot(rules, method="graph", interactive = TRUE, shading = NA)
运行此程序时,我收到有关 igraph 包的错误。
igraph::tkplot(g, ..., layout = igraph::layout_(g, control$layout) 中的错误,:tcl/tk 库不可用
此错误的原因可能是什么?我已禁用 igraph 包,但仍然收到此消息。在此先感谢您的时间!