knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "80%"
)

anura

Travis build status

A Global Dataset of Anuran Species Advertisement Call

Installation

You can install the anura package from GitHub with:

# install.packages("devtools")
devtools::install_github("paternogbc/anura")

Help

In R, documentation for anura dataset can be accessed with the standard help command (e.g., ?anura.data and ?anura.tree).

For a online description of the dataset, see reference page

Example

How to load and use anura.data?

library(anura)

# check anura data.frame
knitr::kable(head(anura.data))

# fit a model
fit <- lm(log10(DF) ~ environment, anura.data)

# make a plot
library(ggplot2)
ggplot(anura.data, aes(y = log10(DF), 
                       x = environment)) +
  geom_jitter(width = .02, size = .2) +
  geom_violin(alpha = .6, fill = gray(.7), color = NA) +
  geom_boxplot(aes(fill = environment),
               alpha = .3, width = .15,
               outlier.color = NA,
               show.legend = F) +
  theme_light(base_size = 20)


paternogbc/anura documentation built on July 12, 2019, 7:52 p.m.