Description Usage Arguments Details Value Author(s) References Examples
View source: R/plot_winner_prob.R
A simple function that provides visualisations of the shape of the hierarchy given parameters a and b in the generate_interactions
function
1 | plot_winner_prob(diff.rank, a, b)
|
diff.rank |
A vector containing the x values of the plot (i.e. differences in rank). |
a |
Parameter a (see |
b |
Parameter b (see |
A simple plotting function to visualise the shapes of curves in the generate_interactions
function.
Generates a plot. No data is returned.
Written by Damien R. Farine & Alfredo Sanchez-Tojar
Maintainer: Damien R. Farine <damien.farine@ieu.uzh.ch>
Sanchez-Tojar, A., Schroeder, J., Farine, D.R. (in prep) Methods for inferring dominance hierarchies and estimating their uncertainty.
1 2 3 4 5 6 7 8 9 10 11 |
# Set population size
N <- 10
# Set shape parameters
a = 15
b = 3
# Plot the shape
plot_winner_prob(1:10,a,b)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.