Learn R Programming

fdm2id (version 1.0.1)

plot.apriori: Plot function for apriori-class

Description

Plot the association rules obtained by APRIORI, using arulesViz.

Usage

# S3 method for apriori
plot(
  x,
  method = "scatterplot",
  measure = c("support", "confidence"),
  shading = "lift",
  ...
)

Arguments

x

The classification model (object of class apriori-class, created by APRIORI).

method

The type of plot (see plot, e.g. "scatterplot", "graph", "grouped", "paracoord").

measure, shading

Parameters passed to plot.

...

Other parameters passed to plot.

See Also

APRIORI, apriori-class, plot

Examples

Run this code
if (FALSE) {
require (datasets)
data (iris)
d = discretizeDF (iris,
    default = list (method = "interval", breaks = 3, labels = c ("small", "medium", "large")))
model = APRIORI (d [, -5], d [, 5], supp = .1, conf = .9, prune = TRUE)
plot (model)
plot (model, method = "graph")
}

Run the code above in your browser using DataLab