Besides listing rules as text, you can visualize association rules, making it easier to find the relationship between itemsets. In the following recipe, we will introduce how to use the
aruleViz package to visualize the association rules.
In this recipe, we will continue using the
Groceries dataset. You need to have completed the previous recipe by generating the pruned rule
Perform the following steps to visualize the association rule:
> install.packages("arulesViz") > library(arulesViz)