Skip to contents

This function takes a data frame with time series data (rows as features and columns as samples), a meta table with sample information including time points and conditions, computes the lag-1 differences for each feature for each condition level, and plots the distribution of these differences.

Usage

plot_lag1_differences(data, meta, condition)

Arguments

data

A data frame where rows are features and columns are samples.

meta

A data frame with sample metadata. Must contain a column "Time" and the condition column.

condition

The name of the column in the meta table that contains the condition information.

Value

A list of ggplot2 objects, each showing the distribution of lag-1 differences for one condition.