vennDA | R Documentation |
allDA
objectPlot a Venn (Euler) diagram of features found by different methods.
vennDA( x, tests = NULL, alpha = 0.1, split = FALSE, output = FALSE, pkg = "eulerr", ... )
x |
(Required) Output from the |
tests |
(Required) Character vector with tests to plot (E.g. |
alpha |
Numeric. q-value threshold for significant features. Default 0.1 |
split |
If TRUE will split diagrams in positive and negative estimates if possible |
output |
If TRUE will return a data.frame instead of a plot |
pkg |
Use either "eulerr" package (default) or "venneuler" for drawing diagrams. |
... |
Additional arguments for plotting |
Require the eulerr package unless output is TRUE.
If output TRUE then a data.frame with Features detected by the different methods
# Creating random count_table and predictor set.seed(5) mat <- matrix(rnbinom(500, size = 0.1, mu = 500), nrow = 50, ncol = 10) pred <- c(rep("Control", 5), rep("Treatment", 5)) # Running allDA to compare methods # This example uses 1 core (cores = 1). # Remove the cores argument to get it as high (and thereby fast) as possible. res <- allDA(data = mat, predictor = pred, cores = 1) # Plot venn diagram comparing significant features from znb and zpo # znb and zpo only have significant features due to high false positive rates in this example # split = TRUE splits the significant features in positive and negative estimates vennDA(res, tests = c("znb","zpo"), split = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.