Search code examples
rplotarules

Plotting Association Rules Error


I am currently learning about association rules in R Below is my code

library(arules)
library(arulesViz)
test[] <- lapply(test, factor)
rules <- apriori(test)

summary(rules)
plot(rules)

The code falls over when i try to plot it with the error:

Error: package ‘arules’ 1.1-9 is loaded, but >= 1.2.0 is required by ‘arulesViz’

In addition: Warning message: package ‘arulesViz’ was built under R version 3.1.3

I tried updating all my packages but i am being told everything is up to date

Has anyone seen this before?

Thanks


Solution

  • What version of R are you running? Possibly you need to update R; the latest version of arules is 1.4.1.