Learn R Programming

aniDom (version 0.1.5)

plot_winner_prob: Plot the shape of the hierarchy given some input parameters

Description

A simple function that provides visualisations of the shape of the hierarchy given parameters a and b in the generate_interactions function

Usage

plot_winner_prob(diff.rank, a, b)

Arguments

diff.rank

A vector containing the x values of the plot (i.e. differences in rank).

a

Parameter a (see generate_interactions).

b

Parameter b (see generate_interactions).

Value

Generates a plot. No data is returned.

Details

A simple plotting function to visualise the shapes of curves in the generate_interactions function.

References

Sanchez-Tojar, A., Schroeder, J., Farine, D.R. (in prep) Methods for inferring dominance hierarchies and estimating their uncertainty.

Examples

Run this code
# 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