plot_relatedness: Plot the distribution of relatedness

Description Usage Arguments Value See Also Examples

View source: R/relatedness.R

Description

This function creates a plot of the distribution of relatedness using the package ggplot2.

Usage

1
plot_relatedness(data, limits = c(0, 0.5), to = "males")

Arguments

data

A dataframe containing the data to be processed.

limits

The limit for the y-axis of the plot.

to

Either 'males' or 'females', to indicate of the relatedness between the focal male is computed to males or females.

Value

A ggplot object.

See Also

figure_relatedness

Examples

1
2
plot_relatedness(data = males, to = 'males')
plot_relatedness(data = males, to = 'females')

courtiol/matingRhinos documentation built on Nov. 22, 2019, 11:10 p.m.