Bar Graph
In an experiment we may observe several categories such as “round yellow”, “wrinkled yellow”, “round green”, or “wrinkled green” in the seed type of progeny in plant breeding. The number of observations in a particular category is called frequency.
A bar graph visualizes numerical values corresponding to categorical values (which is typically the frequency of category) as the height of each bar. The value associated with each category is located above the bar of that category.
Categories are specified in the column of categorical variable. The names of different category then appear on the x-axis (horizontal axis).
When the second variable is associated with categories, two numerical values of each category are represented by two bars side by side and visualized by a grouped bar plot.
© TTU Mathematics