Contents | Previous | Next | Subchapters |
Syntax |
gbar( y) |
gbar( y, x) | |
See Also | bar , ghist , gstair |
m
is the length of y,
the value y(i)
is plotted over the interval
[x(i), x(i+1)]
for i
equal 1 to m
.
Thus the difference between the successive elements of x
specifies the width of the bars.
If x is not present,
the value x(i) = i
is used by default.
gtitle("Bar Plot of x^2")
y = seq(10)^2
gbar(y)
returns the following plot: