Plot a chart of (log2) fold changes of lipids per class showing chain
lengths and saturations. If multiple molecules with the same total chain
length and saturation are present in the dataset, the
measure is averaged,
and the number of molecules is indicated on the plot.
plot_chain_distribution(de_results, contrast = NULL, measure = "logFC")
Which comparison to plot. if not provided, defaults to the the first comparison.
Which measure to plot the distribution of: logFC, P.Value,
Adj.P.Val. Default is
A ggplot object.
data(data_normalized) de_results <- de_analysis( data_normalized, HighFat_water - NormalDiet_water, measure = "Area" ) plot_chain_distribution(de_results)#> Warning: Factor `total_cl` contains implicit NA, consider using `forcats::fct_explicit_na`#> Warning: Factor `total_cs` contains implicit NA, consider using `forcats::fct_explicit_na`