geom_hex {ggplot2} | R Documentation |
Hexagon bining.
geom_hex(mapping = NULL, data = NULL, stat = "binhex", position = "identity", ...)
mapping |
The aesthetic mapping, usually constructed
with |
data |
A layer specific dataset - only needed if you want to override the plot defaults. |
stat |
The statistical transformation to use on the data for this layer. |
position |
The position adjustment to use for overlappling points on this layer |
... |
other arguments passed on to
|
geom_hex
understands the following aesthetics (required aesthetics are in bold):
x
y
alpha
colour
fill
size
# See ?stat_binhex for examples