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 TRUE silently
removes missing values.aes or 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 layer
for more details.Bin 2d plane into hexagons.
stat_binhex understands the following aesthetics (required aesthetics are in bold):
x
y
fill
# You can control the size of the bins by specifying the number of # bins in each direction: d + stat_binhex(bins = 10)
Warning message: Removed 478 rows containing missing values (stat_hexbin).
Warning message: Removed 478 rows containing missing values (stat_hexbin).
stat_bin2d for rectangular binning