Research compendium to reproduce analyses and figures of the following article:
Too cute to be wild: what teddy bears reveal about our disconnection from nature, by Mouquet N., Blanc, N., Brassac T., Casajus N. & Tribot A.-S. Bioscience.
This repository is structured as follow:
-
data/: contains data required to reproduce figures and tables -
analysis/: contains subfolders organized by theme. Each folder contains R scripts to run specific analysis -
results/: follows the structure of analyses. Contains intermediate results and the numeric results used to produce the figures -
outputs/: contains the figures produced for the article -
DESCRIPTION: contains project metadata (author, date, dependencies, etc.)
-
The script
analysis/Cludy_toys.Rcomputes functional insurance with simulated metacommunities. -
The script
analysis/Bear_vs_nounoursus.Rgets the morphometric and colorimetric features from the analysis of images for Teddy bears and Real bears; and perform the main analysis -
The script
analysis/features/cluster.Rextracts information on color clusters heterogeneity in images. -
The script
analysis/features/lumsat.Rextracts information on lightness and saturation in images. -
The script
analysis/morpho/morpho.Rcomputes the morphometric measures from the analysis of teady and real bears images.
Some files were not uploaded to GitHub due to their large size. They are available upon request:
data/illustrations_figuresdata/images_realdata/images_real_cropeddata/images_real_tocropdata/nounoursus
Figures are stored in
outputs/.
The following Figures and Tables can be reproduced with the script indicated in brackets (stored in analysis/):
- cuddly.tiff, was produced by
Cludy_toys.R - fig_pca wad produced by
Bear_vs_nounoursus.R` - fig1-sup, was produced by
Bear_vs_nounoursus.R` - fig2-sup, was produced by
Bear_vs_nounoursus.R`
To install this compendium:
- Fork this repository using the GitHub interface.
- Clone
your fork using
git clone fork-url(replacefork-urlby the URL of your fork). Alternatively, open RStudio IDE and create a New Project from Version Control.
Then, run the following command to install required packages:
# Install < remotes > package (if not already installed) ----
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
# Install required packages ----
remotes::install_deps()All types of contributions are encouraged and valued. For more information, check out our Contributor Guidelines.
Please note that this project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.