Geom.hexbin

Bin data into tiled hexagonal bins and color by count.

Aesthetics

By default Stat.hexbin is applied which bins x and y observations and colors hexagons according to count. To override this, pass Stat.identity to plot and manually bind the color aesthetic.

Arguments

Examples

X = rand(MultivariateNormal([0.0, 0.0], [1.0 0.5; 0.5 1.0]), 10000);
plot(x=X[1,:], y=X[2,:], Geom.hexbin)
x -6 -4 -2 0 2 4 5 10 15 1 Count -5 0 5 y
plot(x=X[1,:], y=X[2,:], Geom.hexbin(xbincount=100, ybincount=100))
x -5 0 5 10 20 30 50 1 40 Count -5.0 -2.5 0.0 2.5 5.0 y