Stat.binmean

Plot the mean of y against the mean of x within n quantile bins of x.

Aesthetics

Arguments

Examples

p1 = plot(dataset("datasets", "iris"), x="SepalLength", y="SepalWidth", Stat.binmean, Geom.point)
SepalLength 4 5 6 7 8 2.75 3.00 3.25 3.50 SepalWidth