Skip to content

This is the repository for the R package matingRhinos for the publication "Mate choice, reproductive success and inbreeding in white rhinos" by Kretzschmar P et al.

Notifications You must be signed in to change notification settings

courtiol/matingRhinos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

matingRhinos

This is the GitHub repository hosting the R package matingRhinos.

The package aims at documenting how we obtained the results for the paper entitled 'Mate choice, reproductive success and inbreeding in white rhinos (Ceratotherium simum Burchell, 1817): new insights for conservation management' by Kretzschmar P., Auld H., Boag P., Ganslosser U., Scott C., Van Coeverden de Groot P.J. & Courtiol A. (accepted in Evolutionary Applications).

For this reason, the package will not evolve much in the future. The only planned updates are those that will be necessary to maintain compatibility with other packages, so that our code won't break. This package has not been conceived for general use. It only serves to document the steps of our analysis, and must be used with our data.

How to explore the sources of the package?

To see our source code, you can either browse the files above within GitHub or download the *.tar.gz file containing all sources bundled with some data to try out our functions in R. This file is available here.

Installation

Whichever option you choose, to install successfully the R package you will need:

  • an up-to-date installation of R (https://cran.r-project.org);

  • the following R packages drat installed. You can install them by typing:

install.packages(c("drat", "ggplot2", "ggforce", "cowplot"))

Then, simply type the following:

drat::addRepo("courtiol")
install.packages("matingRhinos", type = "source")

Usage

  1. load the package:
library("matingRhinos")
  1. access the main documentation by typing:
help("matingRhinos")

About

This is the repository for the R package matingRhinos for the publication "Mate choice, reproductive success and inbreeding in white rhinos" by Kretzschmar P et al.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages