hexplom | R Documentation |
hexplom
draws Conditional Hexbin Plot Matrices. It is similar
to splom
, expect that the default display is different.
Specifically, the default display is created using
panel.hexplom
, which is an alias for panel.hexbinplot
.
hexplom(x, data, ...)
## S3 method for class 'formula'
hexplom(x, data = NULL, ...)
## S3 method for class 'data.frame'
hexplom(x, data = NULL, ..., groups = NULL,
subset = TRUE)
## S3 method for class 'matrix'
hexplom(x, data = NULL, ..., groups = NULL, subset = TRUE)
panel.hexplom(...)
x |
The object on which method dispatch is carried out. For the For the |
data |
For the |
groups , subset , ... |
see |
An object of class "trellis"
. The
update
method can be used to
update components of the object and the
print
method (usually called by
default) will plot it on an appropriate plotting device.
Deepayan Sarkar Deepayan.Sarkar@R-project.org, Nicholas Lewin-Koh nikko@hailmail.net
splom
, xyplot
,
hexbinplot
,
Lattice
, panel.pairs
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.