arulesViz

Visualizing Association Rules and Frequent Itemsets with R

https://github.com/mhahsler/arulesviz

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.9%) to scientific vocabulary

Keywords

arules association-rules cran frequent-itemsets interactive-visualizations r visualization
Last synced: 6 months ago · JSON representation

Repository

Visualizing Association Rules and Frequent Itemsets with R

Basic Info
Statistics
  • Stars: 56
  • Watchers: 7
  • Forks: 15
  • Open Issues: 3
  • Releases: 11
Topics
arules association-rules cran frequent-itemsets interactive-visualizations r visualization
Created over 10 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog

README.Rmd

---
output: github_document
---

```{r echo=FALSE, results = 'asis'}
pkg <- "arulesViz"

source("https://raw.githubusercontent.com/mhahsler/pkg_helpers/main/pkg_helpers.R")
pkg_title(pkg)
```

## Introduction

This R package 
extends package [arules](https://github.com/mhahsler/arules) with various visualization techniques for association rules and itemsets. The package also includes several interactive visualizations for rule exploration.

```{r echo=FALSE, results = 'asis'}
pkg_usage(pkg)
pkg_citation(pkg, 2)
```

This might also require the development version of [arules](https://github.com/mhahsler/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


```{r echo=FALSE, results = 'asis'}
pkg_install(pkg)
```

## Usage 

Mine some rules.
```{r }
library("arulesViz")
data("Groceries")
rules <- apriori(Groceries, parameter = list(support = 0.005, confidence = 0.5))
```

### Standard visualizations

```{r scatterplot}
plot(rules)
```

```{r graph}
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](https://mhahsler.github.io/Introduction_to_Data_Mining_R_Examples/book/association-analysis-basic-concepts-and-algorithms.html#interactive-visualizations)

## References

* Michael Hahsler. [arulesViz: Interactive visualization of association rules with R.](https://journal.r-project.org/archive/2017/RJ-2017-047/RJ-2017-047.pdf) _R Journal,_ 9(2):163-175, December 2017.
* Michael Hahsler. [An R Companion for Introduction to Data Mining: Chapter 5](https://mhahsler.github.io/Introduction_to_Data_Mining_R_Examples/book/association-analysis-basic-concepts-and-algorithms.html). 
Online Book. https://mhahsler.github.io/Introduction_to_Data_Mining_R_Examples/book/, 2021.
* Michael Hahsler, Sudheer Chelluboina, Kurt Hornik, and Christian Buchta. [The arules R-package ecosystem: Analyzing interesting patterns from large transaction datasets.](https://jmlr.csail.mit.edu/papers/v12/hahsler11a.html) _Journal of Machine Learning Research,_ 12:1977-1981, 2011.
* 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). 

Owner

  • Name: Michael Hahsler
  • Login: mhahsler
  • Kind: user
  • Location: Dallas, TX
  • Company: SMU

I develop packages for AI, ML, and Data Science.

GitHub Events

Total
  • Watch event: 4
  • Push event: 1
  • Create event: 1
Last Year
  • Watch event: 4
  • Push event: 1
  • Create event: 1

Committers

Last synced: 12 months ago

All Time
  • Total Commits: 173
  • Total Committers: 2
  • Avg Commits per committer: 86.5
  • Development Distribution Score (DDS): 0.012
Past Year
  • Commits: 5
  • Committers: 1
  • Avg Commits per committer: 5.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Michael Hahsler m****l@h****t 171
tylergiallanza t****a@g****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 19
  • Total pull requests: 4
  • Average time to close issues: 6 months
  • Average time to close pull requests: 4 days
  • Total issue authors: 19
  • Total pull request authors: 3
  • Average comments per issue: 1.63
  • Average comments per pull request: 1.0
  • Merged pull requests: 3
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • PetrellisKostas (1)
  • Derek-Jones (1)
  • VictorGimenez (1)
  • mhahsler (1)
  • Thyra (1)
  • archienorman11 (1)
  • aitmlouk (1)
  • yanboyang713 (1)
  • sostahl (1)
  • nchelaru (1)
  • gdbassett (1)
  • nise (1)
  • gregreich (1)
  • LuckyDao (1)
  • Snehalikalall (1)
Pull Request Authors
  • tylergiallanza (2)
  • firefly-cpp (1)
  • mhahsler (1)
Top Labels
Issue Labels
question (5) bug (4) enhancement (2) invalid (2) help wanted (1)
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cran 9,440 last-month
  • Total docker downloads: 33
  • Total dependent packages: 5
  • Total dependent repositories: 12
  • Total versions: 29
  • Total maintainers: 1
cran.r-project.org: arulesViz

Visualizing Association Rules and Frequent Itemsets

  • Versions: 29
  • Dependent Packages: 5
  • Dependent Repositories: 12
  • Downloads: 9,440 Last month
  • Docker Downloads: 33
Rankings
Downloads: 3.4%
Forks count: 5.2%
Stargazers count: 6.5%
Dependent packages count: 8.2%
Dependent repos count: 8.3%
Average: 8.6%
Docker downloads count: 20.2%
Maintainers (1)
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • arules >= 1.6.0 depends
  • DT * imports
  • dplyr * imports
  • ggplot2 * imports
  • ggraph * imports
  • grDevices * imports
  • graphics * imports
  • grid * imports
  • igraph * imports
  • methods * imports
  • plotly * imports
  • scatterplot3d * imports
  • seriation * imports
  • stats * imports
  • tibble * imports
  • tidyr * imports
  • utils * imports
  • vcd * imports
  • visNetwork * imports
  • Rgraphviz * suggests
  • datasets * suggests
  • graph * suggests
  • htmlwidgets * suggests
  • shiny * suggests
  • shinythemes * suggests
  • tidygraph * suggests