%% Create Box Chart from Vector Data
% Create a single box chart from a vector of ages. Use the box chart to visualize the distribution of ages.
% Load the patients data set. The Age variable contains the ages of 100 patients. Create a box chart to visualize the distribution of ages.

load patients
boxchart(Age)
ylabel('Age (years)')

% The median patient age of 39 years is shown as the line inside the box. The lower and upper quartiles of 32 and 44 years are shown as the bottom and top edges of the box, respectively. The whiskers, or lines that extend below and above the box, have endpoints that correspond to the youngest and oldest patients. The youngest patient is 25 years old, and the oldest is 50 years old. The data set contains no outliers, which would be represented by small circles.
% You can use data tips to get a summary of the data statistics. Hover over the box chart to see the data tip.
% Copyright 2019 The MathWorks, Inc.