%% Horizontal Bar Graph of Categorical Data
% Create a horizontal bar graph with categorical values along the y-axis. By default, the categories display in alphabetical order.

c = categorical({'apples','pears','oranges'});
prices = [1.23 0.99 2.3];
barh(c,prices)

% Copyright 2012 The MathWorks, Inc.