⚠️There's a newer version (1.5-2) of this package. Take me there.

arulesViz - Visualizing Association Rules and Frequent Itemsets with R

This R package extends package arules with various visualization techniques for association rules and itemsets. The package also includes several interactive visualizations for rule exploration.

Installation

Stable CRAN version: install from within R with

install.packages("arulesViz")

Current development version: Download package from AppVeyor or install from GitHub (needs devtools).

library("devtools")
install_github("mhahsler/arulesViz")

This might also require the development version of arules.

Features

  • Visualizations using base, grid and plotly.
  • Interactive visualizations using grid and plotly.
  • Interactive rule inspection with datatable.
  • Integrated interactive rule exploration using ruleExplorer.

Available Visualizations:

  • Scatterplot, two-key plot
  • Matrix and matrix 3D visualization
  • Grouped matrix-based visualization
  • Several graph-based visualizations
  • Doubledecker and mosaic plots
  • Parallel Coordinate plot

Usage

Mine some rules.

library(arulesViz)
data(Groceries)
rules <- apriori(Groceries, parameter=list(support=0.005, confidence=0.5))

Standard visualization

plot(rules)

Interactive visualization with plotly

plotly_arules(rules)

Open example output.

Interactive inspect with datatable

inspectDT(rules)

Open example output.

References

  • Michael Hahsler and Sudheer Chelluboina. [Visualizing Association Rules: Introduction

to the R-extension Package arulesViz](https://cran.r-project.org/package=arulesViz/vignettes/arulesViz.pdf) (with complete examples).

Copy Link

Version

Down Chevron

Install

install.packages('arulesViz')

Monthly Downloads

13,352

Version

1.3-3

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 20th, 2019

Functions in arulesViz (1.3-3)