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 and Options

  • 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 {c1x<c2,,cn-1x<cn}.
  • HistogramCategories->{{c1,,cn},{d1,,dl}} specifies unequally sized categories in Histogram3D.

Examples

Basic Examples  (1)

Automatically choose categories by default:

Use five equally sized categories:

With ApproximateIntervals->True, the number of categories depends on the range of values:

Use a specific list of categories:

Wolfram Research (2007), HistogramCategories, Wolfram Language function, https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html.

Text

Wolfram Research (2007), HistogramCategories, Wolfram Language function, https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html.

CMS

Wolfram Language. 2007. "HistogramCategories." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html.

APA

Wolfram Language. (2007). HistogramCategories. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html

BibTeX

@misc{reference.wolfram_2023_histogramcategories, author="Wolfram Research", title="{HistogramCategories}", year="2007", howpublished="\url{https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html}", note=[Accessed: 29-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_histogramcategories, organization={Wolfram Research}, title={HistogramCategories}, year={2007}, url={https://reference.wolfram.com/language/Histograms/ref/HistogramCategories.html}, note=[Accessed: 29-March-2024 ]}