Hexbin Plot Matrices
hexplom draws Conditional Hexbin Plot Matrices. It is similar
splom, expect that the default display is different.
Specifically, the default display is created using
panel.hexplom, which is an alias for
hexplom(x, data, ...)
## S3 method for class 'formula': hexplom(x, data = NULL, \dots)
## S3 method for class 'data.frame': hexplom(x, data = NULL, \dots, groups = NULL, subset = TRUE)
## S3 method for class 'matrix': hexplom(x, data = NULL, \dots, groups = NULL, subset = TRUE)
- The object on which method dispatch is carried out.
"formula"method, a formula describing the structure of the plot, which should be of the form
~ x | g1 * g2 * ..., where
xis a data frame or matrix. Each of
g1, g2, ...must be either factors or shingles. The conditioning variables
g1, g2, ...may be omitted.
matrixmethods, a data frame or matrix as appropriate.
- For the
formulamethod, an optional data frame in which variables in the formula (as well as
subset, if any) are to be evaluated. By default, the environment where the function was called from is used.
- groups, subset, ...
splom. The non-standard evaluation of
subsetonly applies in the
formulamethod. Apart from arguments that apply to
splom(many of which are only documented in
xyplot), additional arguments meant for
panel.hexplom(which is an alias for
panel.hexbinplot) may also be supplied. Such arguments may include ones that control details of the hexbin calculations, documented in
## Simple hexplom data(NHANES) hexplom(~NHANES[,7:14], xbins=15) ## With colors and conditioning hexplom(~NHANES[,9:13] | Sex, data = NHANES, xbins = 15, colramp = magent) ## With custom panel function hexplom(NHANES[,9:13], xbins = 20,colramp = BTY, upper.panel = panel.hexboxplot)