R: arulesviz and igraph causing a conflict

亡梦爱人 提交于 2019-12-25 08:58:30

问题


I am trying to visualise the "groceries" dataset.

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)

On running this, I get an error about the igraph package.

Error in igraph::tkplot(g, ..., layout = igraph::layout_(g, control$layout), : tcl/tk library not available

What could be the reason for this error? I have disabled the igraph package, but still get this message. Thanks in advance for your time!

来源:https://stackoverflow.com/questions/34180088/r-arulesviz-and-igraph-causing-a-conflict

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!