Difference between revisions of "DotPlot Command"
From GeoGebra Manual
Line 4: | Line 4: | ||
:Returns a dot plot for the given list of numbers, as well as the list of the dot plot points. If a number ''n'' appears in the list of raw data ''k'' times, the returned list contains points ''(n, 1), (n, 2),..., (n, k)''. | :Returns a dot plot for the given list of numbers, as well as the list of the dot plot points. If a number ''n'' appears in the list of raw data ''k'' times, the returned list contains points ''(n, 1), (n, 2),..., (n, k)''. | ||
:{{example|1=<div><code><nowiki>DotPlot[{2, 5, 3, 4, 3, 5, 3}]</nowiki></code> yields ''{(2, 1), (3, 1), (3, 2), (3, 3), (4, 1), (5, 1), (5, 2)}''.</div>}} | :{{example|1=<div><code><nowiki>DotPlot[{2, 5, 3, 4, 3, 5, 3}]</nowiki></code> yields ''{(2, 1), (3, 1), (3, 2), (3, 3), (4, 1), (5, 1), (5, 2)}''.</div>}} | ||
+ | |||
+ | {{betamanual|version=5.0| 1= | ||
+ | ;DotPlot[ <List of Raw Data>, <Stack Adjacent Dots (optional)>, <Scale Factor (optional)>] | ||
+ | The command <code><nowiki>DotPlot</nowiki></code> will also work with a list of text. | ||
+ | :{{example|1=<div><code><nowiki>DotPlot[{"Red", "Red", "Red", "Blue", "Blue"}]</nowiki></code> yields ''{(1, 1), (1, 2), (2, 1), (2, 2), (2, 3)}''.</div>}} | ||
+ | |||
+ | |||
+ | |||
+ | }} |
Revision as of 14:38, 29 July 2014
- DotPlot[ <List of Raw Data> ]
- Returns a dot plot for the given list of numbers, as well as the list of the dot plot points. If a number n appears in the list of raw data k times, the returned list contains points (n, 1), (n, 2),..., (n, k).
- Example:
DotPlot[{2, 5, 3, 4, 3, 5, 3}]
yields {(2, 1), (3, 1), (3, 2), (3, 3), (4, 1), (5, 1), (5, 2)}.
Following text is about a feature that is supported only in GeoGebra 5.0.
The command
|