Boxplot for hexbin lattice plot
panel.hexboxplot.RdA panel function to add a boxplot to a hexbin lattice plot.
Arguments
- x, y
numeric vector or factor.
- xbins
the number of bins partitioning the range of xbnds.
- xbnds, ybnds
horizontal and vertical limits of the binning region in x or y units respectively; must be numeric vector of length 2.
- .prelim, .cpl, .xlim, .ylim, .aspect.ratio
for internal use.
- type
character vector controlling additional augmentation of the display. A
"g"intypeadds a reference grid, an"hg"adds a hexagonal grid.- cdfcut
number in (0,1) indicating the confidence level for the erosion limits. See
erode.hexbinfor more information.- shadow
number in (0,1) indicating the confidence level for the erosion limits of a boxplot shadow. See
erode.hexbinfor more information.- ...
potential further arguments passed on.
- check.erosion
logical indicating only eroded points should be used for
"erodebin"objects; simply passed tohcell2xy, see its documentation.
Value
There is no return value from this function. The results are plotted on the current active device.
Author
Nicholas Lewin-Koh [email protected]
Examples
mixdata <-
data.frame(x = c(rnorm(5000),rnorm(5000,4,1.5)),
y = rep(1:2, 5000))
hexbinplot(y ~ x, mixdata, panel = panel.hexboxplot)