Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

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.

Examples

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

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

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