pareto - Pareto chart

Syntax

pareto(y,names)
[h,ax] = pareto(...)

Description

pareto(y,names) displays a Pareto chart where the values in the vector y are drawn as bars in descending order. Each bar is labeled with the associated value in the string matrix or cell array, names. pareto(y) labels each bar with the index of the corresponding element in y.

The line above the bars shows the cumulative percentage.

[h,ax] = pareto(...) returns a combination of patch and line object handles to the two axes created in ax.

Example

Create a Pareto chart from data measuring the number of manufactured parts rejected for various types of defects.

defects = {'pits';'cracks';'holes';'dents'};
quantity = [5 3 19 25];
pareto(quantity,defects)

See Also

bar, hist

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS