| This is read-only version of the old wiki, feel free to browse it for materials. If you want to share your own materials, please use GeoGebraTube instead. You are also welcome to help us enhance the new wiki. If any questions arise, please contact the webmaster. |
BarChart Command
Syntax
- BarChart[Start Value, End Value, List of Heights]: Creates a bar chart over the given interval where the number of bars is determined by the length of the list whose elements are the heights of the bars.
- BarChart[Start Value a, End Value b, Expression, Variable k, From Number c, To Number d]: Creates a bar chart over the given interval [a, b], that calculates the bars’ heights using the expression whose variable k runs from number c to number d.
- BarChart[Start Value a, End Value b, Expression, Variable k, From Number c, To Number d, Step Width s]: Creates a bar chart over the given interval [a, b], that calculates the bars’ heights using the expression whose variable k runs from number c to number d using step width s.
- BarChart[List of Raw Data, Width of Bars]: Creates a bar chart using the given raw data whose bars have the given width.
- BarChart[List of Data, List of Frequencies]: Creates a bar chart using the list of data with corresponding frequencies.
Examples
- BarChart[10, 20, {1,2,3,4,5} ] gives you a bar chart with five bars of specified height in the interval [10, 20].
- If p = 0.1, q = 0.9, and n = 10 are numbers, then BarChart[ -0.5, n + 0.5, BinomialCoefficient[n,k]*p^k*q^(n-k), k, 0, n ] gives you a bar chart in the interval [-0.5, n+0.5]. The heights of the bars depend on the probabilities calculated using the given expression.
- BarChart[ {1,1,1,2,2,2,2,2,3,3,3,5,5,5,5}, 1]
Source: Statistic commands