View source: R/plot.cellPcaCoDa.R
| plot.cellPcaCoDa | R Documentation |
Provides diagnostic plots for a cellPcaCoDa object.
which = 1 (default) draws a contamination heatmap of the raw-part
flags.
which = 2 draws a compositional biplot in clr space.
## S3 method for class 'cellPcaCoDa'
plot(x, y, ..., which = 1)
x |
object of class |
y |
not used |
... |
further arguments passed to |
which |
integer; |
Called for its side effect (a plot). Returns NULL
invisibly.
Matthias Templ
cellPcaCoDa, print.cellPcaCoDa,
summary.cellPcaCoDa
data(arcticLake)
set.seed(123)
x <- arcticLake
x[1, 2] <- x[1, 2] * 10
x <- constSum(x)
res <- cellPcaCoDa(x, k = 2)
## contamination heatmap
plot(res)
## biplot
plot(res, which = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.