Histograms Package >

Histogram

As of Version 7.0, Histogram is part of the built-in Mathematica kernel.
Histogram[{x1, x2, ...}]
generates a histogram of the univariate data {x1, x2, ...}.
Histogram[{f1, f2, ...}, FrequencyData->True]
generates a histogram of the univariate frequency data {f1, f2, ...}, where fi is the frequency with which the original data occurs in category i.
  • The width of each bar in the histogram is proportional to the width of the interval defining the respective category.
  • The area of each bar in the histogram is proportional to the frequency with which the data falls in that category.
  • The following options can be given:
ApproximateIntervalsAutomaticwhether to adjust the interval boundaries to be simple numbers
BarOrientationVerticalhow to arrange the bars
BarEdgeStyleGrayLevel[0]style of the edges of bars
BarStyleAutomaticstyle of the faces of bars
FrequencyDataFalsewhether input represents the original data or frequencies in categories
HistogramCategoriesAutomaticspecifies categories in the histogram
HistogramRangeAutomaticlower and upper limits of points in histogram
HistogramScaleAutomaticscaling of the bar heights
TicksAutomaticspecifies tick marks for axes
Needs["Histograms`"]
Histogram of 1000 normally distributed random numbers:
In[2]:=
Click for copyable input
Out[2]=
 
Histogram of 1000 uniformly distributed random numbers:
In[1]:=
Click for copyable input
Out[1]=
 
Histogram from a list of frequencies:
In[1]:=
Click for copyable input
Out[1]=
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team