Plot Boxplots of Sample Intensity Distributions
plot_pg_intensities.Rd
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.
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)
}