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

Description Usage Arguments Details Value Author(s) References Examples

View source: R/plot_winner_prob.R

Description

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

Usage

1
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).

Details

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

Value

Generates a plot. No data is returned.

Author(s)

Written by Damien R. Farine & Alfredo Sanchez-Tojar

Maintainer: Damien R. Farine <damien.farine@ieu.uzh.ch>

References

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

Examples

 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)
	

aniDom documentation built on March 7, 2021, 1:07 a.m.