plot_Z: A function to plot a bipartite interaction matrix

Description Usage Arguments Examples

View source: R/plot_Z.R

Description

This function generates a raster plot of the binary interaction matrix 'Z' using the 'image' function in the 'graphics' package.

Usage

1
plot_Z(Z, xlab, ylab, tickMarks = 100, ...)

Arguments

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

Examples

1
2
3
4
5
6
7
# 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)

## End(Not run)

melmasri/HPprediction documentation built on May 2, 2020, 11:09 a.m.