[cause count]=textread('Causes_of_Death_short.txt','%q%f');

[n m] = size(cause);	

figure(1);
pie(count,cause);
title('Figure 2.2');

%figure(2);
%bar(count);
%set(gca, 'XTick', 1:8, 'XTickLabel', cause);

figure(2);
bar(1:8,diag(count),'stacked');
set(gca, 'XTick', 1:8, 'XTickLabel', cause);
title('Figure 2.2');

figure(3);
bar(count);
title('Figure 2.2');
