In this example, we produce a histogram using Gadfly.
We can use this small script:
using Gadfly srand(111) plot(x=randn(77), Geom.histogram(bincount=10))
That produces this plot:
We are using another part of Gadfly. In this case, we are selecting one of the geometric shapes of the histogram. Gadfly has quite a variety of shapes to choose from.
We tell Gadfly to break up the data into 10 bins for the histogram. For the example, we are generating 113 data points.