Difference between revisions of "Histogram Command"

From GeoGebra Manual
Jump to: navigation, search
(create official page from pdf)
 
(create official page from pdf)
Line 1: Line 1:
 
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 +
{{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: <tt>Histogram[{0, 1, 2, 3, 4, 5}, {2, 6, 8, 3, 1}]</tt> 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: <tt>Histogram[{0, 1, 2, 3, 4, 5}, {2, 6, 8, 3, 1}]</tt> 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]: 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.
 
; Histogram[List of Class Boundaries, List of Raw Data]: 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: <tt>Histogram[{1, 2, 3, 4},{1.0, 1.1, 1.1, 1.2, 1.7, 2.2, 2.5, 4.0}]</tt> creates a histogram with 3 bars, with the heights 5 (first bar), 2 (second bar), and 1 (third bar).
 
: Example: <tt>Histogram[{1, 2, 3, 4},{1.0, 1.1, 1.1, 1.2, 1.7, 2.2, 2.5, 4.0}]</tt> creates a histogram with 3 bars, with the heights 5 (first bar), 2 (second bar), and 1 (third bar).

Revision as of 14:28, 6 November 2010


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]
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).
© 2021 International GeoGebra Institute