Learn R Programming

⚠️There's a newer version (0.3.3) of this package.Take me there.

mateable 0.3.1 is now available on CRAN.

We added a vignette and many new features to this version.

mateable 0.3.0

With this release you can organize mating scene data (makeScene and simulateScene), visualize mating scenes (plotScene, plot3DScene, and plotPotential), do some basic analysis of mating scenes (synchrony, proximity, compatibility), and a few other useful tasks (matingSummary, overlap, etc.)!

mateable

This repo provides source code for an R package called mateable. This package provides tools to simulate, manage, visualize, and analyze spatially and temporally explicit datasets of mating potential. It implements methods to calculate synchrony, proximity, and compatibility.

To download the CRAN version of this package simple use the standard command to do so:

install.packages("mateable")

To get the current development version you can use the package devtools, and the following code to automatically install package mateable.

install.packages("devtools") # if you don't already have it
library(devtools)
install_github("stuartWagenius/mateable")
library(mateable)
?mateable

You should see a help page. Click the index link at the bottom of the page to see what functions are available. Copy and paste the example code to see what happens!

Let me know if you have any questions.

If you are interested in contributing to this package, fork the repo and modify/add functions as you see fit. After modifying the repo, create test code that shows that the modifications work in a variety of contexts. Also show that when the modifications show error messages, they aren't indecipherable. Submit a pull request with your test code and someone from the Echinacea Project will review the code and accept, deny, or suggest modifications to your changes.

For more advanced programmers, this packages uses Rcpp to take advantage of the speed benefits of C++. If you think that some part of this would be optimized through C++ programming, add your code to the src/ folder and make sure that the package builds.

Happy coding!

Copy Link

Version

Install

install.packages('mateable')

Monthly Downloads

177

Version

0.3.1

License

GPL

Issues

Pull Requests

Stars

Forks

Maintainer

Stuart Wagenius

Last Published

April 8th, 2016

Functions in mateable (0.3.1)

eelr2012

Information about mating scene at site eelr in 2012.
makeScene

Create a matingScene object from a data frame
mateable-package

Tools to simulate, manage, visualize, and jointly analyze spatially and temporally explicit datasets of mating potential
synchrony

Make potentials object--mating synchrony
compatibility

Make potentials object--mating type compatibility
simulateScene

Simulate a Mating Scene
plot3DPotential

graphical visualization of multiple mating potential objects
proximity

Make potentials object--spatial proximity
receptivityByDay

Mating Receptivity by Day
plotPotential

graphical visualization of a mating potential object
kNearNeighbors

Get k Nearest Neighbors
plot3DScene

multi-dimensional visualization of mating scene object
pairDist

Distance Matrix for a mating scene
plotScene

graphical visualization of a mating scene object
matingSummary

Summarize a Mating Scene
overlap

Pairwise Mating Timing Comparison