Learn R Programming

nuggets (version 2.0.1)

explore.associations: Show interactive application to explore association rules

Description

[Experimental]

Launches an interactive Shiny application for visual exploration of mined association rules. The explorer provides tools for inspecting rule quality, comparing interestingness measures, and interactively filtering subsets of rules. When the original dataset is supplied, the application also allows for contextual exploration of rules with respect to the underlying data.

Usage

# S3 method for associations
explore(x, data = NULL, ...)

Value

An object of class shiny.appobj representing the Shiny application. When "printed" in an interactive R session, the application is launched immediately in the default web browser.

Arguments

x

An object of S3 class associations, typically created with dig_associations().

data

An optional data frame containing the dataset from which the rules were mined. Providing this enables additional contextual features in the explorer, such as examining supporting records.

...

Currently ignored.

Author

Michal Burda

See Also

dig_associations()

Examples

Run this code
if (FALSE) {
data("iris")
# convert all columns into dummy logical variables
part <- partition(iris, .breaks = 3)

# find association rules
rules <- dig_associations(part)

# launch the interactive explorer
explore(rules, data = part)
}

Run the code above in your browser using DataLab