This function generates a raster plot of the binary interaction matrix 'Z' using the 'image' function in the 'graphics' package.
plot_Z(Z, xlab, ylab, tickMarks = 100, ...)
Z | bipartite interaction matrix |
---|---|
xlab | labels for the x axis (default is 'parasites') |
ylab | labels for the y axis (default is 'hosts') |
... | Additional parameters that control graphing parameters |
# Simluate a Z matrix and plot it# NOT RUN { Z <- matrix(rbinom(50*200, 1, 0.01), nrow=50, ncol=200) Z <- Z[,colSums(Z)>0] plot_Z(tree) # }