pkg <- "arulesViz" source("https://raw.githubusercontent.com/mhahsler/pkg_helpers/main/pkg_helpers.R") pkg_title(pkg)
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.
pkg_usage(pkg) pkg_citation(pkg, 2)
This might also require the development version of arules.
ggplot2
(default engine for most methods), grid
, base
(R base plots), htmlwidget
(powered by plotly
and visNetwork
). grid
, plotly
and visNetwork
.datatable
.ruleExplorer
. Available Visualizations
pkg_install(pkg)
Mine some rules.
library("arulesViz") data("Groceries") rules <- apriori(Groceries, parameter = list(support = 0.005, confidence = 0.5))
plot(rules)
plot(rules, method = "graph", limit = 20)
Live examples for interactive visualizations can be seen in Chapter 5 of An R Companion for Introduction to Data Mining
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.