MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
The function pie accepts the categorical array, SelfAssessedHealthStatus, and plots
a pie chart of the four categories.

Create Pareto Chart

Create a Pareto chart from the category counts for each of the four categories of
SelfAssessedHealthStatus.

figure
A = countcats(SelfAssessedHealthStatus);
C = categories(SelfAssessedHealthStatus);
pareto(A,C);
title('Self Assessed Health Status From 100 Patients')

8 Categorical Arrays

Free download pdf