irmb function is an interactive version of the basic rmb function. It provides sliders for x- and y-scales, variable inclusion/exclusion, axis changes, switching between barcharts, spineplots and mosaic plots as well as model selection for residual shadings and a few more options.
It depends on the ## S3 method for class 'formula':
irmb(formula, data, gap.prop = 0.2,
gap.mult = 1.5, col = "hcl", col.opt =list(), Z=100, abbrev = FALSE,
use.na = FALSE, expected = TRUE, resid.type = "pearson",
max.resid.scale = NULL, cut.rs = 7, yaxis = TRUE, min.alpha = 0.1,
boxes = TRUE, lab.tv = FALSE, varnames = TRUE, lab.cex = 1.2,...)
## S3 method for class 'ftable':
irmb(x , gap.prop = 0.2, gap.mult = 1.5, col = "hcl", col.opt=list(),
Z=100, abbrev = FALSE, use.na = FALSE, expected = TRUE,
resid.type = "pearson", max.resid.scale = NULL, cut.rs = 7,
yaxis = TRUE, min.alpha = 0.1, boxes = TRUE, lab.tv = FALSE,
varnames = TRUE, lab.cex = 1.2, ...)table or of class ftable. The arguments formula and data will be omitted.gap.mult times larger than those corresponding to the next variable on the same axis."hsv" and "rgb" for hsv-based rainbow colors, "hcl" for hcl-based rainbow colors (default), "div" or "diverge""N/A" will be created in each variable where missings occur.TRUE residual shadings according to loglinear models will be available."pearson", "deviance", "working", "partial" or "response". The underlying model is a glm poisson model. The mosaicplot option will always use Pearson rTRUE a vertical axis will be drawn at both sides of the plot. This is recommended when using the y-axis slider.eqwidth = T alpha blending with respect to the corresponding weight is applied to the background color of the bars. In order to save very sparse combinations from disappearing there is a minimum alpha value.TRUE the labels will automatically be abbreviated (3 characters) using the abbreviate function.data(housing)
# example 1
irmb(~Type+Infl+Cont+Sat,data=housing,abbrev=4)
# example 2
irmb(~Type+Infl+Cont+Sat,data=housing,expected = FALSE,
gap.mult=2,abbrev=4)Run the code above in your browser using DataLab