Learn R Programming

steepness (version 0.1)

getplot: Steepness plot

Description

Function to plot NormDS against Rank order and fit linear regression line

Usage

getplot(X,names)

Arguments

X
Original sociomatrix.
names
Character vector with the names of individuals. This vector is NULL by default

Details

getplot plots NormDS against rank scores.

References

de Vries, H., Stevens, J. M. G., & Vervaecke, H. (2006). Measuring and testing the steepness of dominance hierarchies. Animal Behaviour, 71, 585-592.

See Also

getNormDS, steeptest.

Examples

Run this code
X <- matrix(c(0, 1, 2, 1, 0, 1, 3, 1, 0),nrow=3,byrow=TRUE)
  names <- c("Ag1","Ag2","Ag3")

Run the code above in your browser using DataLab