def create_scree_plot(in_filename, out_filename, plot_title):
    """Creates a scree plot using smartpca results.

    :param in_filename: the name of the input file.
    :param out_filename: the name of the output file.
    :param plot_title: the title of the scree plot.

    :type in_filename: str
    :type out_filename: str
    :type plot_title: str

    """
    # Constructing the arguments
    scree_plot_args = ("--evec", in_filename, "--out", out_filename,
                       "--scree-plot-title", plot_title)
    try:
        # Executing the main method
        PlotEigenvalues.main(argString=scree_plot_args)

    except PlotEigenvalues.ProgramError as e:
        msg = "PlotEigenvalues: {}".format(e)
        raise ProgramError(msg)