Create a plot showing the distribution of both imputed and observed abundance values contained in a SummarizedExperiment object.

plotImputationDistribution(sce, assayToPlot, assayImputation, xlab = "")

Arguments

sce

A SummarizedExperiment object (or a derivative).

assayToPlot

Character scalar indicating the name of a numeric assay of sce to use for plotting.

assayImputation

Character scalar indicating the name of a logical assay of sce to use for filling the distribution plots.

xlab

Character scalar providing the x-axis label for the plot.

Value

A ggplot object.

Author

Charlotte Soneson

Examples

sce <- readRDS(system.file("extdata", "mq_example", "1356_sce.rds",
                           package = "einprot"))
plotImputationDistribution(sce, assayToPlot = "log2_LFQ.intensity",
                           assayImputation = "imputed_LFQ.intensity")