Draws a result of enterotype() with base graphics.
Arguments
- x
A result of
enterotype().- type
"profiles"or"selection".- n_features
The number of features to show in
"profiles". Default10.- ...
Passed on to
graphics::barplot()orgraphics::plot.default(), such asmain,ylaborcol.
Details
"profiles"(the default): stacked bars of each type's mean composition, with then_featuresfeatures that reach the largest mean proportion in any type, and the rest pooled as "Other". The bars are labelled with the type and its number of samples."selection": the criterion that chose the number of types (forenterotype(), the Calinski-Harabasz index) against the number of types, with the one chosen circled.
The types keep the order and colours of levels(x$type) in every plot.
Examples
et <- enterotype(iris[, 1:4], n_types = 2:5)
plot(et)
plot(et, 'selection')
