histogram
histogram(a,n,color)
vector of real numbers
vector of positive real numbers
character string
histogram(a,n,color)
where
color
is an optional argument, plots
an histogram of a statistical series where the variable is grouped into classes. It plots a data vector using
the classes defined in the vector a
. a
is a vector
giving the class boundaries in increasing order.
n
is the vector of corresponding frequencies. The vector a
has one more component than the vector n
. color
defines the color
as in the function plot
.
Similar to the function histplot()
. Enter the command histplot()
to see a demo