Histograms`
Histograms`
HistogramCategories
As of Version 7.0, HistogramCategories has been superseded by an optional argument hspec for the built-in Wolfram Language function Histogram.
HistogramCategories
is an option of histogram functions that specifies the categories in the histogram.
Details
- To use HistogramCategories, you first need to load the Histograms Package using Needs["Histograms`"].
- With HistogramCategories->Automatic, the categories are chosen to be intervals of equal width. The number of categories is chosen automatically.
- HistogramCategories->n specifies that n equally sized categories should be used.
- HistogramCategories->{m,n} specified that an m×n grid of categories should be used for Histogram3D.
- HistogramCategories->{c1,c2,…,cn} uses categories {c1≤x<c2,…,cn-1≤x<cn}.
- HistogramCategories->{{c1,…,cn},{d1,…,dl}} specifies unequally sized categories in Histogram3D.
Examples
Basic Examples (1)
In[1]:= |
Automatically choose categories by default:
Use five equally sized categories:
With ApproximateIntervals->True, the number of categories depends on the range of values: