set.seed(123) # Makes example reproducible
# Create example data
data <- create_synthetic_data(
n_proteins = 100,
frac_change = 0.05,
n_replicates = 3,
n_conditions = 2,
method = "effect_random"
)
# Plot intensity distribution
# The plot style can be changed
qc_intensity_distribution(
data = data,
sample = sample,
grouping = peptide,
intensity_log2 = peptide_intensity_missing,
plot_style = "boxplot"
)
Run the code above in your browser using DataLab