Skip to content

Shiny app to visualise a bipartite network for student projects.

License

Notifications You must be signed in to change notification settings

agreenville/Bipartite-Network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bipartite Network

DOI

The Bipartite Network analysis app was created with Shiny and Bipartite package for R. The app was made to visualise a bipartite network and generate nestedness indices for student projects.

Features:

  • Supports data matrices with and without abundance data of lower-order group/species.
  • Generates bipartite graph from interaction matrix.
  • Calculates nestedness (NODF2) indices.
  • Visualises interaction matrix. Shading indicates number of interactions.
  • Download graphs and matrices and save to your device.

Data file format:

Save data file as a .csv, with rows as higher order group (e.g. plant species) and columns as lower order group (e.g. invertebrate species). If you have the abundance of each higher order group (e.g. plant species), add abundance data as the last column.

You can see the app in action here: https://aaronecology.shinyapps.io/Network/

Example datasets from the Bipartite package:

Safariland.csv  
Safariland_Abund.csv (has plant abundance data in the last column)  

Summary of setup steps:

  1. Download R and install it.

https://www.r-project.org/

  1. Download RStudio and install it.

https://rstudio.com/products/rstudio/download/

  1. Install required R packages:
install.packages(c("shiny", "bipartite"), dependencies = TRUE) 
  1. Download/clone network app from github and unzip it somewhere safe:

To run app via RStudio:

  1. Open RStudio project

Check

  1. Open script

Check

  1. Click run app

Click on arrow

Need to make sure it runs “externally” i.e. in the web browser for full functionality.

Check

About

Shiny app to visualise a bipartite network for student projects.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages