问题
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