Pie Charts, Histograms and Pareto Charts

Pie Chart

a = [.5 1 1.6 1.2 .8 2.1];

pie(a,a==max(a)); % chart a and pull out the biggest slice

title('Example Pie Chart')

figure

Pareto Chart

The pareo charter draws values iin the vector argument as bars in descending order along with the associate accumulated line plot. We can use the data from the previous esample:

pareto(a)

title('Example Pareto Chart')

figure

y = rand(1,1000); % get uniform random numbers

hist(y)

title('Histogram of uniform data'>

xlabel ('split y-data into 10 bins and count how many entries in each bin')