Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 529 Bytes

stat_binmean.md

File metadata and controls

29 lines (21 loc) · 529 Bytes

title: binmean author: Matthieu Gomez part: Statistic order: 1005 ...

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

Aesthetics

  • x: Data to be plotted on the x-axis.
  • y: Data to be plotted on the y-axis.

Arguments

  • n: Number of bins

Examples

using Gadfly
using RDatasets
Gadfly.set_default_plot_size(14cm, 8cm)
p1 = plot(dataset("datasets", "iris"), x="SepalLength", y="SepalWidth", Stat.binmean, Geom.point)