Skip to contents

Generates boxplots to visualize and compare the distribution of protein intensities for each sample. This is a common quality control plot to check for normalization issues or identify potential outlier samples.

Usage

plot_pg_intensities(object)

Arguments

object

A SummarizedExperiment object.

Value

A ggplot object showing a boxplot for each sample's log10-transformed intensity distribution.

Examples

# Create sample data
raw_data <- data.frame(
  Gene = c("GENEA", "GENEB", "GENEC", "GENED"),
  SampleA = c(100, 200, 150, 120),
  SampleB = c(110, 210, 160, 130), # Slightly higher than A
  SampleC = c(250, 500, 400, 300)   # Higher median and spread
)
pd_obj <- create_protdata(dat = raw_data)

# Generate the boxplot of intensities
p <- plot_pg_intensities(pd_obj)
#> Error: unable to find an inherited method for function ‘plot_pg_intensities’ for signature ‘object = "ProtData"’
if (interactive()) {
  print(p)
}