Perform the following steps to visualize the association rule:
- First, you need to install and load the arulesViz package:
> install.packages("arulesViz") > library(arulesViz)
- You can then make a scatter plot from the pruned rules:
> plot(rules.pruned)
- Additionally, to prevent overplotting, you can add jitter to the scatter plot:
> plot(rules.pruned, shading="order", control=list(jitter=6))
- We then produce new rules ...