Description Usage Arguments Details Value References See Also Examples
View source: R/plotPairwiseMatrix.R
Plot lower-triangular matrix of pairwise divergence or overlap values
using a colour scale and levelplot
from the lattice
package.
The mean value may be included.
1 2 3 4 5 6 7 8 | plotPairwiseMatrix(x, statistic = c("divergence", "overlap"),
pairwise.mean = NULL, mean.position = c(0.45, 0.3), bty = "L",
aspect = "iso", col.regions = function(x) gray(c(1, seq(0.9, 0.6,
length.out = (x - 2)), 0)), colorkey = list(labels = list(cex = 1)),
at = c(0, 0.01, seq(0.2, 0.8, 0.2), 0.99, 1), scales = list(draw = FALSE,
tck = 0, cex = 0.7, x = list(rot = 90)), axis.label = "Group",
xlab = list(axis.label, cex = 1), ylab = list(axis.label, cex = 1),
digits = getOption("digits"), ...)
|
x |
Pairwise divergence or overlap matrix as found at,
e.g., |
statistic |
|
pairwise.mean |
Mean pairwise divergence or overlap as found at,
e.g., |
bty, aspect, col.regions, colorkey, at, scales, xlab, ylab |
Additional
plot options passed to |
axis.label |
Label used for the X and Y axes, the X and Y axis
labels can be changed with |
digits |
Number of digits to use when printing mean value,
taken from the |
mean.pos |
If |
The default colour scheme used is grayscale, with white and black used for values very near the extremes (within 0.01 of 0 and 1, respectively). Options are available for modifying the colour scheme.
The class lattice
plot object is returned invisibly
Scofield, D. G., Smouse, P. E., Karubian, J. and Sork, V. L. (2012) Use of alpha, beta and gamma diversity measures to characterize seed dispersal by animals. American Naturalist 180:719-732.
1 2 3 4 5 6 | data(granaries_2002_Qlob)
d <- diversity(granaries_2002_Qlob)
plotPairwiseMatrix(x = d$r$divergence.mat,
pairwise.mean = d$r$divergence,
statistic = "divergence",
axis.label = "Granary")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.