stat_summary_hex(mapping = NULL, data = NULL, geom = "hex", position = "identity", bins = 30, drop = TRUE, fun = mean, ...)
stat_summary2d is hexagonal version of
stat_summary. The data are devided by
z in each cell is passed to arbitral summary function.
stat_summary-hex requires the following aesthetics:
x: horizontal position
y: vertical position
z: value passed to the summary function
# Specifying function d + stat_summary_hex(fun = function(x) sum(x^2)) d + stat_summary_hex(fun = var, na.rm = TRUE)
stat_summary2dfor rectangular summarization.
stat_bin2dfor the hexagon-ing options.