The function pie accepts the categorical array, SelfAssessedHealthStatus, and plots
a pie chart of the four categories.Create Pareto ChartCreate 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