Open antagomir opened 8 months ago
Thank you for your outstanding work on miaVIZ. The current plots from plotExpression can be cluttered and less informative. It would be immensely helpful to have more general plotting functions, such as those incorporating boxplots or violin plots. These additional plot types could better highlight significant species or taxa differences between study groups, especially in DAA analysis. For instance, a grouped boxplot could effectively highlight the significance of differences between study groups, offering a clearer and more informative representation of the data.
Thank you for considering this enhancement.
Related to #114 ?
I agree in general. The plots on this could be improved. I am also not a fan of violin plots.
@muhamanz Now there is support for boxplots https://github.com/alanocallaghan/scater/pull/208
devtools::install_github("alanocallaghan/scater")
library(mia)
library(scater)
data("GlobalPatterns")
tse <- GlobalPatterns
tse <- agglomerateByRank(tse, rank = "Phylum")
tse <- transformAssay(tse, method = "log10", pseudocount = 1)
# As a demonstration, take 5 first taxa
significant <- rownames(tse)[1:5]
plotExpression(tse, features = significant, assay.type = "log10", show_violin = FALSE, show_boxplot = TRUE)
For examples with boxplots representing significance, the ggsnignif pkg is now supporting multiple testing correction: https://github.com/const-ae/ggsignif/issues/28#issuecomment-1704469175
-> Would be good to integrate to miaViz so that users can easily draw some standard comparisons that are readily corrected. Like alpha diversity or taxon abundance comparisons between groups for instance.