powered by
A simple function that provides visualisations of the shape of the hierarchy given parameters a and b in the generate_interactions function
generate_interactions
plot_winner_prob(diff.rank, a, b)
A vector containing the x values of the plot (i.e. differences in rank).
Parameter a (see generate_interactions).
Parameter b (see generate_interactions).
Generates a plot. No data is returned.
A simple plotting function to visualise the shapes of curves in the generate_interactions function.
Sanchez-Tojar, A., Schroeder, J., Farine, D.R. (in prep) Methods for inferring dominance hierarchies and estimating their uncertainty.
# NOT RUN { # Set population size N <- 10 # Set shape parameters a = 15 b = 3 # Plot the shape plot_winner_prob(1:10,a,b) # }
Run the code above in your browser using DataLab