%% Specify String Labels Along x-Axis
% Define x as a string vector containing the names of eight programmers that contributed to a project. Define y as the number of lines of code that each programmer contributed. Display the data in a Pareto chart with a title.

x = ["Fred" "Gina" "Norman" "Josphat" "Julia" "Wally" "Heidi" "Pat"];
y = [200 120 555 608 1024 101 57 687];
pareto(y,x)
title('Lines of Code by Programmer')

% Copyright 2015 The MathWorks, Inc.