Difference between revisions of "FrequencyPolygon Command"

From GeoGebra Manual
Jump to: navigation, search
m
(command syntax: changed [ ] into ( ))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|chart}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|chart}}
 
{{Note|Frequency polygon is a line graph drawn by joining all the midpoints of the top of the bars of a histogram. Therefore usage of this command is the same as usage of [[Histogram Command]].}}
 
{{Note|Frequency polygon is a line graph drawn by joining all the midpoints of the top of the bars of a histogram. Therefore usage of this command is the same as usage of [[Histogram Command]].}}
; FrequencyPolygon[ &lt;List of Class Boundaries>, &lt;List of Heights> ]: Creates a frequency polygon with vertices in given heights. The class boundaries determine the x-coordinate of each vertex.
+
<br>
{{Example| 1=<code>FrequencyPolygon[{0, 1, 2, 3, 4, 5}, {2, 6, 8, 3, 1}]</code> creates the corresponding line graph.}}
+
; FrequencyPolygon( &lt;List of Class Boundaries>, &lt;List of Heights> ): Creates a frequency polygon with vertices in given heights. The class boundaries determine the x-coordinate of each vertex.
; FrequencyPolygon[ &lt;List of Class Boundaries>, &lt;List of Raw Data>, <Boolean Use Density>, <Density Scale Factor (optional)> ]: Creates a frequency polygon using the raw  data. The class boundaries determine the x-coordinates of vertices and are used to determine how many data elements lie in each class. The y-coordinate of a vertex is determined as follows
+
:{{Example| 1=<code>FrequencyPolygon({0, 1, 2, 3, 4, 5}, {2, 6, 8, 3, 1})</code> creates the corresponding line graph.}}
* If ''Use Density = true'', height = (Density Scale Factor) * (class frequency) / (class width)  
+
<br>
* If ''Use Density = false'', height = class frequency
+
; FrequencyPolygon( &lt;List of Class Boundaries>, &lt;List of Raw Data>, <Boolean Use Density>, <Density Scale Factor (optional)> ): Creates a frequency polygon using the raw  data. The class boundaries determine the x-coordinates of vertices and are used to determine how many data elements lie in each class. The y-coordinate of a vertex is determined as follows
 +
:* If ''Use Density = true'', height = (Density Scale Factor) * (class frequency) / (class width)  
 +
:* If ''Use Density = false'', height = class frequency
 
: By default,  Use Density = true and Density Scale Factor = 1.  
 
: By default,  Use Density = true and Density Scale Factor = 1.  
;FrequencyPolygon[ <Boolean Cumulative>, &lt;List of Class Boundaries>, &lt;List of Raw Data>, <Boolean Use Density> , <Density Scale Factor (optional)> ]
+
<br>
 +
;FrequencyPolygon( <Boolean Cumulative>, &lt;List of Class Boundaries>, &lt;List of Raw Data>, <Boolean Use Density> , <Density Scale Factor (optional)> )
 
:If Cumulative is true this creates a frequency polygon where each vertex y-coordinate equals the frequency of the class plus the sum of all previous frequencies.
 
:If Cumulative is true this creates a frequency polygon where each vertex y-coordinate equals the frequency of the class plus the sum of all previous frequencies.
 
{{Note|For further examples see [[Histogram Command]].}}
 
{{Note|For further examples see [[Histogram Command]].}}

Latest revision as of 11:12, 3 October 2017


Note: Frequency polygon is a line graph drawn by joining all the midpoints of the top of the bars of a histogram. Therefore usage of this command is the same as usage of Histogram Command.


FrequencyPolygon( <List of Class Boundaries>, <List of Heights> )
Creates a frequency polygon with vertices in given heights. The class boundaries determine the x-coordinate of each vertex.
Example: FrequencyPolygon({0, 1, 2, 3, 4, 5}, {2, 6, 8, 3, 1}) creates the corresponding line graph.


FrequencyPolygon( <List of Class Boundaries>, <List of Raw Data>, <Boolean Use Density>, <Density Scale Factor (optional)> )
Creates a frequency polygon using the raw data. The class boundaries determine the x-coordinates of vertices and are used to determine how many data elements lie in each class. The y-coordinate of a vertex is determined as follows
  • If Use Density = true, height = (Density Scale Factor) * (class frequency) / (class width)
  • If Use Density = false, height = class frequency
By default, Use Density = true and Density Scale Factor = 1.


FrequencyPolygon( <Boolean Cumulative>, <List of Class Boundaries>, <List of Raw Data>, <Boolean Use Density> , <Density Scale Factor (optional)> )
If Cumulative is true this creates a frequency polygon where each vertex y-coordinate equals the frequency of the class plus the sum of all previous frequencies.
Note: For further examples see Histogram Command.
© 2024 International GeoGebra Institute