plot_trend: Plot a regulation trend line between logFC and chain...

Description Usage Arguments Value Examples

View source: R/plot.R

Description

Fit and plot a regression line of (log2) fold changes and total chain lengths or unsaturations. If multiple comparisons are included, one regression is plotted for each.

Usage

1
plot_trend(de_results, annotation = c("length", "unsat"))

Arguments

de_results

Output of de_analysis.

annotation

Whether to fit trend line against chain length or unsat.

Value

A ggplot object.

Examples

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

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