plotCarbonsDoublebonds: plotCarbonsDoubleBonds

View source: R/plotCarbonsDoubleBonds.R

plotCarbonsDoublebondsR Documentation

plotCarbonsDoubleBonds

Description

Creates a heatmap of logfold change of the lipids with carbon length on y-axis and double_bonds on x-axis

Usage

plotCarbonsDoublebonds(df)

Arguments

df

A dataframe with a log2(FC) column containing log2 fold change values of different lipid species, that has been run through countCarbonsDoubleBonds and getLipidType.

Value

A ggplot2 heatmap.

Examples

data <- tibble(
'feature' = c('AC(6:0)', 'AC(8:1)', 'AC(10:2)',
             'Cer(d18:0/16:0)', 'Cer(d18:0/24:1)', 'Cer(d18:1/24:1)',
             'DAG(18:0/18:1)', 'DAG(16:1/18:1)', 'DAG(18:2/18:3)'),
'log2(FC)' = c(-2, 0.1, 1.5, 0.5, 0.7, -0.5, 1, 1, 1.2))
to_plot <- data %>% countCarbonsDoublebonds() %>% getLipidType()
plot <- to_plot %>% plotCarbonsDoublebonds()


AslaugL/thesisToolsOmics documentation built on April 3, 2022, 8:16 p.m.