rare_stacked | R Documentation |
Visualize the number of observations per sample.
rare_stacked(
biom,
rline = TRUE,
counts = TRUE,
labels = TRUE,
y.transform = "log10",
...
)
biom |
An rbiom object, such as from |
rline |
Where to draw a horizontal line on the plot, intended to show
a particular rarefaction depth. Set to |
counts |
Display the number of samples and reads remaining after
rarefying to |
labels |
Show sample names under each bar. Default: |
y.transform |
Y-axis transformation. Options are |
... |
Additional parameters to pass along to ggplot2 functions.
Prefix a parameter name with |
A ggplot2
plot. The computed data points and ggplot
command are available as $data
and $code
,
respectively.
Other rarefaction:
rare_corrplot()
,
rare_multiplot()
,
rarefy()
,
rarefy_cols()
,
sample_sums()
Other visualization:
adiv_boxplot()
,
adiv_corrplot()
,
bdiv_boxplot()
,
bdiv_corrplot()
,
bdiv_heatmap()
,
bdiv_ord_plot()
,
plot_heatmap()
,
rare_corrplot()
,
rare_multiplot()
,
stats_boxplot()
,
stats_corrplot()
,
taxa_boxplot()
,
taxa_corrplot()
,
taxa_heatmap()
,
taxa_stacked()
library(rbiom)
rare_stacked(hmp50)
rare_stacked(hmp50, rline = 500, r.linewidth = 2, r.linetype = "twodash")
fig <- rare_stacked(hmp50, counts = FALSE)
fig$code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.