Displays a two-dimensional density estimate using hexagonal bins. Observations are aggregated into hexagons and coloured according to the number of observations falling into each cell.
Usage
plotHexbin(
x,
y,
bins = 30,
col = NULL,
border = NA,
grid = FALSE,
xlim = NULL,
ylim = NULL,
main = NULL,
xlab = "",
ylab = "",
...
)Arguments
- x
numeric vector of x-values.
- y
numeric vector of y-values.
- bins
number of hexagons across the x-axis.
- col
colours used for the count scale. If
NULL, a default sequential palette is used.- border
border colour of the hexagons.
- grid
logical or list controlling the background grid.
- xlim
limits for the x-axis.
- ylim
limits for the y-axis.
- main
main title.
- xlab
label for the x-axis.
- ylab
label for the y-axis.
- ...
additional graphical parameters passed to
.applyParFromDots().
See also
Other plot.bivariate:
plotAssoc(),
plotBag(),
plotCor(),
plotDens2D(),
plotHeatmap(),
plotMosaic(),
plotXY()
