knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "80%" )
A Global Dataset of Anuran Species Advertisement Call
You can install the anura package from GitHub with:
# install.packages("devtools") devtools::install_github("paternogbc/anura")
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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.