Difference between revisions of "Histogram Command"

From GeoGebra Manual
Jump to: navigation, search
m (1 revision: tt => code)
Line 2: Line 2:
 
{{command|chart}}
 
{{command|chart}}
 
; Histogram[List of Class Boundaries, List of Heights]: Creates a histogram with bars of the given heights. The class boundaries determine the width and position of each bar of the histogram.
 
; Histogram[List of Class Boundaries, List of Heights]: Creates a histogram with bars of the given heights. The class boundaries determine the width and position of each bar of the histogram.
: {{Example| <code><code>Histogram[{0, 1, 2, 3, 4, 5}, {2, 6, 8, 3, 1}]</code></code> creates a histogram with 5 bars of the given heights. The first bar is positioned at the interval [''0, 1''], the second bar is positioned at the interval [''1, 2''], and so on.}}
+
: {{Example| <code>Histogram[{0, 1, 2, 3, 4, 5}, {2, 6, 8, 3, 1}]</code> creates a histogram with 5 bars of the given heights. The first bar is positioned at the interval [''0, 1''], the second bar is positioned at the interval [''1, 2''], and so on.}}
 
; Histogram[List of Class Boundaries, List of Raw Data, Use Density, Density Scale Factor(optional)]: Creates a histogram using the raw data. The class boundaries determine the width and position of each bar of the histogram and are used to determine how many data elements lie in each class. {{description}}
 
; Histogram[List of Class Boundaries, List of Raw Data, Use Density, Density Scale Factor(optional)]: Creates a histogram using the raw data. The class boundaries determine the width and position of each bar of the histogram and are used to determine how many data elements lie in each class. {{description}}
: {{Example| <code><code>Histogram[{1, 2, 3, 4},{1.0, 1.1, 1.1, 1.2, 1.7, 2.2, 2.5, 4.0}]</code></code> creates a histogram with 3 bars, with the heights 5 (first bar), 2 (second bar), and 1 (third bar).}}
+
: {{Example| <code>Histogram[{1, 2, 3, 4},{1.0, 1.1, 1.1, 1.2, 1.7, 2.2, 2.5, 4.0}]</code> creates a histogram with 3 bars, with the heights 5 (first bar), 2 (second bar), and 1 (third bar).}}

Revision as of 14:55, 27 February 2011


Histogram[List of Class Boundaries, List of Heights]
Creates a histogram with bars of the given heights. The class boundaries determine the width and position of each bar of the histogram.
Example: Histogram[{0, 1, 2, 3, 4, 5}, {2, 6, 8, 3, 1}] creates a histogram with 5 bars of the given heights. The first bar is positioned at the interval [0, 1], the second bar is positioned at the interval [1, 2], and so on.
Histogram[List of Class Boundaries, List of Raw Data, Use Density, Density Scale Factor(optional)]
Creates a histogram using the raw data. The class boundaries determine the width and position of each bar of the histogram and are used to determine how many data elements lie in each class.


Example: Histogram[{1, 2, 3, 4},{1.0, 1.1, 1.1, 1.2, 1.7, 2.2, 2.5, 4.0}] creates a histogram with 3 bars, with the heights 5 (first bar), 2 (second bar), and 1 (third bar).
© 2024 International GeoGebra Institute