Description Usage Arguments Value Examples
View source: R/CV_calculation.R
Plot CV distribution to compare various steps of the analysis
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
df_long |
as in |
sample_annotation |
data frame with:
.
See |
feature_id_col |
name of the column with feature/gene/peptide/protein
ID used in the long format representation |
sample_id_col |
name of the column in |
measure_col |
if |
biospecimen_id_col |
column in |
batch_col |
column in |
unlog |
(logical) whether to reverse log transformation of the original data |
log_base |
base of the logarithm for transformation |
offset |
small positive number to prevent 0 conversion to |
plot_title |
title of the plot (e.g., processing step + representation level (fragments, transitions, proteins) + purpose (meanplot/corrplot etc)) |
filename |
path where the results are saved. If null the object is returned to the active window; otherwise, the object is save into the file. Currently only pdf and png format is supported |
theme |
ggplot theme, by default |
ggplot
object with the boxplot of CVs on one or several steps
1 2 3 4 | CV_plot = plot_CV_distr(example_proteome,
sample_annotation = example_sample_annotation,
measure_col = 'Intensity', batch_col = 'MS_batch',
plot_title = NULL, filename = NULL, theme = 'classic')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.