Plot Food Web

Functions for ecological modelling
725 Downloads
Updated 6 Dec 2019

PLOTFOODWEB makes it easy to produce beautiful 3D or 2D figures of ecological food webs. The only required argument is the adjacency matrix of predator-prey connections. Sizes, colors, trophic levels, and the spatial arrangement can be specified as optional arguments. The submission figure shows three possibilities. In the top-left is the default type. The top-right is high-quality with random arrangement and the size of spheres as a function of the Log of body mass. At the bottom, a biplot where species are arranged according to mass (X-axis) and trophic level (Y-axis).

Cite As

Francisco de Castro (2024). Plot Food Web (https://github.com/capahaddock/Ecology), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2008b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Acknowledgements

Inspired by: Patchline

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.4.0.3

Connect to Github

1.4.0.2

Corrected detail in the help.

1.4.0.1

new figure

1.4.0.0

Add a new type of plot. Reorganize help

1.3.0.0

Use default color map if Brewer color function is not installed.
Forgot to include the file in previous update
Change 'mds' option in 'arrange' for 'pca' (principal components analysis).
Added option to color by kmeans clustering of adjacency matrix.
Correct brewer colormap problem
Correct minor typos in help
Added required function 'calcarc'

1.2.0.0

Ability to specify variable line colors.
Possibility to use curved lines
Ability to provide a full interactions matrix, not just adjacency matrix of 0 and 1.

1.1.0.0

Option to plot in 2D
Option to arrange species by multidimensional scaling
Faster plotting
Optional transparency of lines
Option to plot the food web in 2D.
Option to arrange species in 3D with mutidimensional scaling
Faster plotting of cylinders connecting species
Optional transparency of lines
Rearranged and improved help
Added missing function fwrotation

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.