Supplement 1. Example R code and models. Melbourne-ThomasJ. WotherspoonS. RaymondB. ConstableA. 2016 <h2>File List</h2><div> <p>R files:</p> <p> <a href="simulation.r">simulation.r</a> (md5: 282588866b80f0d3318a1446a3251665)<br> <a href="bayestest.r">bayestest.r</a> (md5: 61c4b9620541b11764e0f8b15885fbd6)<br> <a href="interface.r">interface.r</a> (md5: 7c8d3c8a1dea0653bb13e63898028f65)<br> <a href="mutual.r">mutual.r</a> (md5: 36d845acc9de95c5d14ba9a85c04be5f)<br> <a href="tree.r">tree.r</a> (md5: 6c2fdcfa45bd39c90b400018bf928fb3)<br> <a href="distance.r">distance.r</a> (md5: 9fa284893caf861e4c8127b676305269)<br> <a href="community.r">community.r</a> (md5: 9741154bc2029b4f5c22e93c86609a99)<br> <a href="dia.r">dia.r</a> (md5: 59bddece34b9577c83202b4a845e40e7)<br> <a href="tk.r">tk.r</a> (md5: de75b0f1e80a830d0eecd10a7e86515f) </p> <p>Dia model files:</p> <p> <a href="macquarie.dia">macquarie.dia</a> (md5: 45d926fc48b1bf9a148dc71167bb87a3)<br> <a href="mesocosm1.dia">mesocosm1.dia</a> (md5: 56f4b10b0ffd15714dc76221740dd2a7)<br> <a href="mesocosm2.dia">mesocosm2.dia</a> (md5: c8cafd5b4fa2ff319515c995a73e769c)<br> <a href="fivevariable1.dia">fivevariable1.dia</a> (md5: 77bfb61c147c45bbc6f5dc47aa1ed6c3)<br> <a href="fivevariable2.dia">fivevariable2.dia</a> (md5: d39313ae9302b7fa7940e44e13734614)<br> <a href="fivevariable3.dia">fivevariable3.dia</a> (md5: b0d04d241a7d4622a80043f12e982fb6)<br> <a href="fivevariable4.dia">fivevariable4.dia</a> (md5: 36a4e77580957e9bdeee305af4855258)<br> <a href="fivevariable5.dia">fivevariable5.dia</a> (md5: b6eb08d1f3cf294df3db469bf19afefa) </p> </div><h2>Description</h2><div> <p>Example R code for analyses presented in the main text is provided in simulation.r, bayestest.r, interface.r, mutual.r, tree.r, distance.r. Comments are provided at the beginning of each of these files describing the application of network analysis algorithms, and comments throughout annotate the steps involved. Dependencies are community.r, dia.r, and tk.r. These analyses require signed directed graphs created in Dia (available from <a href="http://live.gnome.org/Dia" target="_blank">http://live.gnome.org/Dia</a>) as inputs. Example models provided as part of this supplement are macquarie.dia, mesocosm1.dia, mesocosm2.dia, and fivevariable1.dia–fivevariable5.dia. </p> </div>