stat_binhex(mapping = NULL, data = NULL, geom = "hex", position = "identity", bins = 30, na.rm = FALSE, ...)
FALSE(the default), removes missing values with a warning. If
TRUEsilently removes missing values.
aes_string. Only needs to be set at the layer level if you are overriding the plot defaults.
layer. This can include aesthetics whose values you want to set, not map. See
layerfor more details.
Bin 2d plane into hexagons.
stat_binhex understands the following aesthetics (required aesthetics are in bold):
d + geom_hex()
# You can control the size of the bins by specifying the number of # bins in each direction: d + stat_binhex(bins = 10)
d + stat_binhex(bins = 30)
stat_bin2dfor rectangular binning