【问题标题】:arulesViz "graph" plot doesn't show the connectionsarulesViz“图表”图不显示连接
【发布时间】:2019-05-25 16:46:28
【问题描述】:

我正在使用 arulesViz 库来绘制一些关于推荐系统的图表。
我有一些规则,我想将它们绘制成图表。

plot(regras, method = "graph", control = list(type = "itens"))

这是我得到的:

【问题讨论】:

    标签: r arules


    【解决方案1】:

    这似乎是 arulesViz 中的一个错误。但是,有一种解决方法。

    由于您没有提供任何可用作示例的数据,我将使用文档中示例的变体。仅使用基本情节就不会显示您的问题中的链接。

    data(Groceries)
    rules <- apriori(Groceries, parameter=list(support=0.002, confidence=0.8))
    plot(rules, method="graph")
    

    但是,如果您设置alpha=1,则会显示链接。

    plot(rules, method="graph",  alpha = 1)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-24
      • 2015-12-31
      • 2019-08-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多