MyNixOS website logo
Description

Visualizing Association Rules and Frequent Itemsets.

Extends package 'arules' with various visualization techniques for association rules and itemsets. The package also includes several interactive visualizations for rule exploration. Michael Hahsler (2017) <doi:10.32614/RJ-2017-047>.

R package arulesViz - Visualizing Association Rules and Frequent Itemsets

CRANversion stream r-universestatus CRAN RStudio mirrordownloads

Introduction

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.

The following R packages use arulesViz: arules, fdm2id, rattle, TELP

To cite package ‘arulesViz’ in publications use:

Hahsler M (2017). “arulesViz: Interactive Visualization of Association Rules with R.” R Journal, 9(2), 163-175. ISSN 2073-4859, doi:10.32614/RJ-2017-047<https://journal.r-project.org/archive/2017/RJ-2017-047/RJ-2017-047.pdf.

@Article{,
  title = {arules{V}iz: {I}nteractive Visualization of Association Rules with {R}},
  author = {Michael Hahsler},
  year = {2017},
  journal = {R Journal},
  volume = {9},
  number = {2},
  pages = {163--175},
  url = {https://journal.r-project.org/archive/2017/RJ-2017-047/RJ-2017-047.pdf},
  doi = {10.32614/RJ-2017-047},
  month = {December},
  issn = {2073-4859},
}

This might also require the development version of arules.

Features

  • Visualizations using engines ggplot2 (default engine for most methods), grid, base (R base plots), htmlwidget (powered by plotly and visNetwork).
  • Interactive visualizations using grid, plotly and visNetwork.
  • 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

Installation

Stable CRAN version: Install from within R with

install.packages("arulesViz")

Current development version: Install from r-universe.

install.packages("arulesViz",
    repos = c("https://mhahsler.r-universe.dev". "https://cloud.r-project.org/"))

Usage

Mine some rules.

library("arulesViz")
data("Groceries")
rules <- apriori(Groceries, parameter = list(support = 0.005, confidence = 0.5))
## Apriori
## 
## Parameter specification:
##  confidence minval smax arem  aval originalSupport maxtime support minlen
##         0.5    0.1    1 none FALSE            TRUE       5   0.005      1
##  maxlen target  ext
##      10  rules TRUE
## 
## Algorithmic control:
##  filter tree heap memopt load sort verbose
##     0.1 TRUE TRUE  FALSE TRUE    2    TRUE
## 
## Absolute minimum support count: 49 
## 
## set item appearances ...[0 item(s)] done [0.00s].
## set transactions ...[169 item(s), 9835 transaction(s)] done [0.00s].
## sorting and recoding items ... [120 item(s)] done [0.00s].
## creating transaction tree ... done [0.00s].
## checking subsets of size 1 2 3 4 done [0.00s].
## writing ... [120 rule(s)] done [0.00s].
## creating S4 object  ... done [0.00s].

Standard visualizations

plot(rules)

plot(rules, method = "graph", limit = 20)

Interactive visualization

Live examples for interactive visualizations can be seen in Chapter 5 of An R Companion for Introduction to Data Mining

References

Metadata

Version

1.5.3

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows