This function plots an abundance box plot between two groups for a user-selected feature (lipid).
A SummarizedExperiment object constructed by
as_summarized_experiment
and processed by data_process
.
Character. A feature (lipid) for plotting. It must be one of the lipids in the lipid abundance data.
Character. Group name of the reference group. It must be one of the group names in the group information table's group column.
Character. The method for comparing means. Allowed method include
"t-test" and "Wilcoxon test". Default is 't-test'
Character. Method for data transformation. Allowed methods
include "none", "log10", "square", and "cube". Select 'none' to skip data transformation.
Default is 'log10'
.
Return a list of a box plot and a table.
static_boxPlot: abundance box plot of the selected feature.
table_boxplot: table for plotting.
table_stat: statistical table.
data("de_data_twoGroup")
processed_se <- data_process(
de_data_twoGroup, exclude_missing=TRUE, exclude_missing_pct=70,
replace_na_method='min', replace_na_method_ref=0.5,
normalization='Percentage')
boxPlot_result <- boxPlot_feature_twoGroup(
processed_se, feature='Cer 38:1;2', ref_group='ctrl', test='t-test',
transform='log10')