View source: R/plot_functions.R
ridges_pq | R Documentation |
ridges_pq(physeq, fact, nb_seq = TRUE, log10trans = TRUE, ...)
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 |
A ggplot
2 plot with bar representing the number of sequence en each
taxonomic groups
Adrien Taudière
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
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.