Usage
visid(x, freqvar = "Freq", tp = FALSE, fr = 1, fc = 1, sort = "n",
sort.method = "count", col = "w",
mar.col = c(alpha("black", 0.7), alpha("darkred", 0.8), "red", "green"),
s = Inf, pmax = 1, opts = list(), plot = TRUE, return.data = !plot, ...)
visna(x, freqvar = "Freq", tp = FALSE, fr = 1, fc = 1, sort = "n",
sort.method = "count", col = "w",
mar.col = c(alpha("black", 0.7), alpha("darkred", 0.8), "red", "green"),
s = Inf, pmax = 1, opts = list(), plot = TRUE, return.data = !plot, ...)
visdf(x, freqvar = "Freq", tp = FALSE, fr = 1, fc = 1, sort = "n",
sort.method = "count", col = "w",
mar.col = c(alpha("black", 0.7), alpha("darkred", 0.8), "red", "green"),
s = Inf, pmax = 1, opts = list(), plot = TRUE, return.data = !plot, ...)
Arguments
x
A binary dataframe or matrix. is.na and idat can be used to bring in missing values and categorical variables. freqvar
An optional frequency variable. If this is not found the data is aggregated usingsubtable. tp
Logical. Whether or not to transpose the indicator matrix for the visualization.
fr
This controls the row filtering: Only the fr
most frequent rows are kept. Values below 1 are interpreted as proportions and only the minmum number of rows covering at least fr
percent of the observations are kept.
sort
One of "n"
(no reordering), "r"
(row reordering), "c"
(column reordering) or "b"
(row and column reordering).
sort.method
The default is reordering by frequency (rows) and average (columns). Other options include "ME"
for reordering by the measure of effectiveness (see optME) and
"optile"
which enables all r col
The color palette. For the basic indicator case only a single color is meaningful. Transfrmations via idat feature coloring by variable. mar.col
Colors for the marginals: rows, columns, row markers, column markers (see s
and pmax
).
s
Ceiling censored zooming for the rows. The maximum of the scale is s
times the second largest value.
pmax
The maximum for the average/percentage scale used for the column marginal plot.
opts
A list of options. Currently:
rlll{
gap.prop
gaps proportion used in fluctile).
The default is to use no gaps if more than
40 rows or columns are involved.
ma
plot
Whether or not to draw the plot.
return.data
Whether or not to return the data after filtering and reordering took place.
...
Further arguments passed to either optME or optile. Can for instance be used to choose the reordering method.