Description Usage Arguments Examples
This function generates a degree distribution plot for the binary interaction matrix 'Z'. Optionally, you can compare the observed matrix to the posterior matrix by including it as 'Z_est'. By default the function plots the degree for both rows (hosts) and columns (parasites), but you can modify this with the parameter 'type'.
1 2 3 4 5 6 7 8 9 10 11 | plot_degree(
Z,
Z_est,
type = "both",
host.col = "blue",
parasite.col = "red",
cex.lab = 1.5,
cex.axis = 2,
pt.cex = 1.5,
legend.cex = 2
)
|
Z |
bipartite interaction matrix |
Z_est |
the posterior bipartite interaction matrix (optional) |
type |
whether to plot 'hosts', 'parasites', or 'both' |
host.col |
Colour to use for hosts (default is 'blue') |
parasite.col |
Colour to use for parasites (default is 'red') |
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.