Description Usage Arguments Details See Also
The perturbation of two compositional vectors v
and y
is given (up to
compositional equivalence) by the elementwise product v * y
.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
x |
An abundance matrix or phyloseq object containing one |
y |
A numeric vector with which to perturb the observations in x |
margin |
Matrix margin that corresponds to observations (samples);
|
norm |
String specifying how to normalize the perturbed observations; see Details. |
Let w = v * y
, where v
is a row or column of x
. The normalization
options specified by the norm
argument are
"close" Return the compositional closure of w into the simplex,
w / sum(w)
"keep" Keep the same total abundance as the original vector by returning
w * sum(v) / sum(w)
"none" Return w
without any normalization
If y
is named, then the names must agree with the taxa names in x
and
will be used to reorder y
to match the taxa order in x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.