Graphics    

Bar and Area Graphs

Bar and area graphs display vector or matrix data. These types of graphs are useful for viewing results over a period of time, comparing results from different datasets, and showing how individual elements contribute to an aggregate amount. Bar graphs are suitable for displaying discrete data, whereas area graphs are more suitable for displaying continuous data.

Function
Description

bar

Displays columns of m-by-n matrix as m groups of n vertical bars

barh

Displays columns of m-by-n matrix as m groups of n horizontal bars

bar3

Displays columns of m-by-n matrix as m groups of n vertical 3-D bars

bar3h

Displays columns of m-by-n matrix as m groups of n horizontal 3-D bars

area

Displays vector data as stacked area plots


  Creating Specialized Plots Types of Bar Graphs