function unigram_frequency_plot ( c, freq, label )

%*****************************************************************************80
%
%% unigram_frequency_plot() plots a letter frequency table.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    29 August 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer C(27): the unigrams.
%
%    integer FREQ(27): the number of occurences of character i.
%
%    character LABEL, a label for the data.
%
  bar ( freq );
  n = length ( c );
  xticks ( 1:n );
  c_cell = {};
  for i = 1 : n
    c_cell{i} = char ( c(i) );
  end
  xticklabels ( c_cell );

  grid ( 'on' );
  xlabel ( '<-- Character -->' );
  ylabel ( '<-- Frequency -->' );
  title ( label );

  return
end

