The Chesapeake Bay food web

Chapter 5, exercise.

The side panel needs about 900 pixels of width. On a phone or in a narrow window, open the page on its own.

What to try

Tie width is the log of the carbon flow plus one. Move the edge-width slider to its smallest and to its largest value and describe what changes. The slider multiplies every width by the same number, so the ratio of the widest to the narrowest tie stays as it is: it cannot do the work of the log transformation.

The Stata commands

. nwwebuse chesapeake, nwclear
. nwgenerate chesapeake_log = ln(chesapeake + 1)
. set seed 42
. nwplot chesapeake, arcstyle(straight) edgesize(chesapeake_log, legendoff) ///
>     edgefactor(0.5) arrowfactor(0.3) layout(mds) label(_nwnode)       ///
>     generate(x y) interactive noopen fname(chesapeake_interactive.html)

Source

Data: Baird, D. and Ulanowicz, R. E. (1989), Ecological Monographs 59, 329-364. See the data sets page.


Back to top

nwcommands is free software under the GNU General Public License, version 3, as are the model packages nwsaom, nwergm, nwdynam and nwrem. Citing and licenses · Get help · GitHub. Issues with the core go to the nwcommands repository; issues with a model package go to that package's own repository.

This site uses Just the Docs, a documentation theme for Jekyll.