knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "tools/README-" )
ranmr
is the companion R analysis package for Thorne et al.'s manuscript
The Low Abundance and High Catchability of Large Piscivorous Ferox Trout
(Salmo trutta) in Loch Rannoch, Scotland.
To use the ranmr
package first install
R (version 3.2.2 or greater) and
JAGS (version 3.4.0 or greater).
Then execute the following code at the R terminal:
install.packages("devtools") library(devtools) install_github("poissonconsulting/tulip@v0.0.13") install_github("poissonconsulting/datalist@v0.5.0") install_github("poissonconsulting/juggler@v0.1.5") install_github("poissonconsulting/jaggernaut@v2.3.2") install_github("poissonconsulting/ranmrdata") install_github("poissonconsulting/ranmr") library(ranmr)
To quickly replicate the results with unreliable model estimates use:
replicate_results()
This option is useful for testing everything is installed correctly.
To replicate the results with reliable model estimates use:
replicate_results("report")
To replicate the results with the same settings as the manuscript use:
replicate_results("paper", res = 900)
For more information type ?replicate_results
after loading the package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.