Skip to contents

Plots histograms of p-values from linear regression model, where each feature is predicted by injection order alone. The expected uniform distribution is represented by a dashed red line.

Usage

plot_injection_lm(object, all_features = FALSE, assay.type = NULL)

Arguments

object

a SummarizedExperiment or MetaboSet object

all_features

logical, should all features be used? If FALSE (the default), flagged features are removed before visualization.

assay.type

character, assay to be used in case of multiple assays

Value

A ggplot object.

See also

Examples

data(example_set)
plot_injection_lm(example_set)
#> INFO [2025-06-23 22:37:44] Starting linear regression.
#> INFO [2025-06-23 22:37:45] Linear regression performed.
#> INFO [2025-06-23 22:37:45] Starting linear regression.
#> INFO [2025-06-23 22:37:45] Linear regression performed.
#> INFO [2025-06-23 22:37:45] Starting linear regression.
#> INFO [2025-06-23 22:37:46] Linear regression performed.