geom_hex {ggplot2} | R Documentation |
Tile the plane with hexagons
geom_hex(mapping=NULL, data=NULL, stat="binhex", position="identity", ...)
mapping |
mapping between variables and aesthetics generated by aes |
data |
dataset used in this layer, if not specified uses plot dataset |
stat |
statistic used by this layer |
position |
position adjustment used by this layer |
... |
ignored |
This page describes geom_hex, see layer
and qplot
for how to create a complete plot from individual components.
A layer
The following aesthetics can be used with geom_hex. Aesthetics are mapped to variables in the data with the aes
function: geom\_hex(\code{aes}(x = var))
x
: x position (required)
y
: y position (required)
colour
: border colour
fill
: internal colour
size
: size
Hadley Wickham, http://had.co.nz/
## Not run: # See ?stat_binhex for examples ## End(Not run)