Description Usage Arguments Value Examples
View source: R/ordination-methods.R
This is a wrapper for the clusGap
function,
expecting an ordination result as the main data argument.
1 2 3 |
ord |
(Required). An ordination object. The precise class can vary.
Any ordination classes supported internally by the phyloseq package
should work, ultimately by passing to the |
axes |
(Optional). The ordination axes that you want to include. |
type |
(Optional). One of |
FUNcluster |
(Optional). This is passed to
Any function that has these input/output properties (performing a clustering) will suffice. The more appropriate the clustering method, the better chance your gap statistic results will be useful. |
K.max |
(Optional). A single positive integer value.
It indicates the maximum number of clusters that will be considered.
Value must be at least two.
This is passed to |
... |
(Optional). Additional named parameters
passed on to |
An object of S3 class "clusGap"
, basically a list with components.
See the clusGap
documentation for more details.
1 2 3 4 5 6 7 8 9 | data("soilrep")
sord = ordinate(soilrep, "PCoA", "bray")
# Evaluate axes with scree plot
plot_scree(sord)
# Gap Statistic
gs = gapstat_ord(sord, axes=1:3, verbose=FALSE)
# plot_ordination(soilrep, sord, color="Treatment")
plot_clusgap(gs)
print(gs, method="Tibs2001SEmax")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.