Produce plot of the prior on COI for given parameters. This prior is Beta in the bi-allelic case, and Dirichlet in the multi-allelic case.

plot_prior_p(lambda = 1, alleles = NULL)

Arguments

lambda

shape parameter(s) of the Beta or Dirichlet distribution. Can be a single scalar value, in which case the dimensionality is given by the number of alleles, or a vector of values specifying the shape parameter for each allele

alleles

the dimensionality of the prior. Defaults to the length of lambda, or to 2 of lambda is a scalar