qplot-FIMatrix: Plot FIMatrix objects with ggplot2

Description Usage Arguments Value Examples

Description

The qplot function can do a scatter plot with the support on the y-axis and the itemset-length on the x-axis or a histogram of itemset lengths

Usage

1
2
3
## S4 method for signature 'FIMatrix'
qplot(x, col = "red", alpha = 0.1,
  type = c("hist", "scatter"))

Arguments

x

Object of class FIMatrix

col

colour of data points (only scatter plot) per default "red"

alpha

alpha value for scatter plot per default 0.1

type

character string "hist" or "scatter" depending on wether you want a histogram or scatter plot

Value

Scatter plot of itemset length against support or histogram of itemset lengths

Examples

1
2
3
4
5
6
# Plot frequent itemsets as scatter plot.
sp <- qlot(FIMatrix)
# You can specify the color and alpha value for scatter plots.
sp2 <- qplot(FIMatrix, col = "blue", alpha = 1)
# Plot frequent itemsets as a histogram
hst <- qplot(FIMatrix, type = "hist")

TimToebrock/Rpriori documentation built on Oct. 18, 2020, 9:41 p.m.