plot_chain_distribution: Plot logFC of lipids per class showing chain information

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Plot a chart of (log2) fold changes of lipids per class showing chain lengths and unsaturations. If multiple molecules with the same total chain length and unsaturation are present in the dataset, the measure is averaged, and the number of molecules is indicated on the plot.

Usage

1
plot_chain_distribution(de_results, contrast = NULL, measure = "logFC")

Arguments

de_results

Output of de_analysis().

contrast

Which comparison to plot. if not provided, defaults to the the first comparison.

measure

Which measure to plot the distribution of: logFC, P.Value, Adj.P.Val. Default is logFC

Value

A ggplot object.

Examples

1
2
3
4
5
6
7
data(data_normalized)
de_results <- de_analysis(
  data_normalized,
  HighFat_water - NormalDiet_water,
  measure = "Area"
)
plot_chain_distribution(de_results)

lipidr documentation built on Nov. 8, 2020, 7:50 p.m.