ridges_pq {MiscMetabar} | R Documentation |
Ridge plot of a phyloseq object
Description
Usage
ridges_pq(physeq, fact, nb_seq = TRUE, log10trans = TRUE, ...)
Arguments
physeq |
(required): a |
fact |
(required) Name of the factor in |
nb_seq |
(logical; default TRUE) If set to FALSE, only the number of ASV
is count. Concretely, physeq |
log10trans |
(logical, default TRUE) If TRUE, the number of sequences (or ASV if nb_seq = FALSE) is log10 transformed. |
... |
Other params passed on to |
Value
A ggplot
2 plot with bar representing the number of sequence en each
taxonomic groups
Author(s)
Adrien Taudière
Examples
if (requireNamespace("ggridges")) {
ridges_pq(data_fungi_mini, "Time", alpha = 0.5, log10trans = FALSE) + xlim(c(0, 1000))
}
if (requireNamespace("ggridges")) {
ridges_pq(data_fungi_mini, "Time", alpha = 0.5, scale = 0.9)
ridges_pq(data_fungi_mini, "Sample_names", log10trans = TRUE)
ridges_pq(data_fungi_mini,
"Time",
jittered_points = TRUE,
position = ggridges::position_points_jitter(width = 0.05, height = 0),
point_shape = "|", point_size = 3, point_alpha = 1, alpha = 0.7,
scale = 0.8
)
}
[Package MiscMetabar version 0.9.1 Index]