VBatch {BDMMAcorrect} | R Documentation |
Visualize batch effect with principal coordinate analysis
VBatch(Microbiome_dat, main_variable = NULL, method = "bray")
Microbiome_dat |
A SummarizedExperiment object that includes the taxonomy read counts, phenotypes and batch labels. |
main_variable |
Optional. A vector containing the main effect variable. Only for categorical main effect variable.The function will generate a figure for each catagory. |
method |
A string indicating which method should be used to calculate the distance matrix for principal coordinate analysis. |
The function returns a list containing plot objects of principal coordinate analysis figures.
data(Microbiome_dat) figure <- VBatch(Microbiome_dat, method = "bray") print(figure)