New in Wolfram
Mathematica
8: Statistical Visualization
◄
previous
|
next
►
Graphics & Visualization
Specify Bin Sizes for Histograms
Plot histograms using a named binning specification, a specific width, or desired number of total bins.
In[1]:=
X
snow = ExampleData[{"Statistics", "BuffaloSnow"}]; Grid[ Partition[ Reverse@MapThread[ Histogram[snow, #, ChartStyle -> #2, PlotRange -> All, PlotLabel -> #, Axes -> {True, False}, BaseStyle -> {FontFamily -> "Helvetica"}, LabelStyle -> Bold] &, {Join[{20, 15, 12, 10, 8, 5, 3}, {"Sturges", "Scott", "FreedmanDiaconis", "Knuth", "Wand"}], Table[ColorData[cd, cd], {cd, 9, 20}]}], 3]]
Out[1]=