Usage
itemFrequencyPlot(x, ...)
## S3 method for class 'itemMatrix':
itemFrequencyPlot(x, type = "relative",
support = NULL, topN = NULL,
population = NULL, popCol = "black", popLwd = 1,
lift = FALSE, horiz = FALSE,
names = TRUE, cex.names = par("cex.axis"),
xlab = NULL, ylab = NULL, mai = NULL, ...)
Arguments
x
the object to be plotted.
...
further arguments are passed on (see
barplot
from possible arguments). type
a character string indicating whether
item frequencies should be displayed
relative of absolute.
support
"numeric"
; only display items which have a support of
at least support
. If no population is given, support is calculated
from x
otherwise from the population. Support is interpreted relative
or absolute
topN
"numeric"
; only plot the topN
items with the highest item frequency or lift (if lift = TRUE
).
The items are plotted in descending order.
population
object of same class as x
; if x
is a segment of a population, the population mean frequency for
each item can be shown as a line in the plot.
popCol
plotting color for population.
popLwd
line width for population.
lift
"logical"
; plot the lift ratio between instead
of frequencies. The lift ratio is gives how many times an item is
more frequent in x
than in population
.
horiz
"logical"
; If FALSE
(default),
the bars are drawn vertically. If TRUE
, the bars are
drawn horizontally.
names
"logical"
; should the names (bar labels) displayed?
cex.names
"numeric"
; expansion factor for axis names (bar labels).
xlab
a character string with the label for the x axis (use an empty string to force no label).
ylab
a character string with the label for the y axis (see xlab).
mai
a numerical vector giving the plots margin sizes in inches (see `? par').