View source: R/plot_CV_density.R
plot_CV_density | R Documentation |
Plot cumulative density for precision results
plot_CV_density(
input_list,
xaxes_limit = 50,
cv_col = c("RT", "Pep_quant", "PG_quant")
)
input_list |
A list with data frames and respective information on quantitative or retention time precision. |
xaxes_limit |
Numeric. Limit of x-axes in plot. |
cv_col |
Character string. Choose between "RT", "Pep_quant", "PG_quant" for corresponding precision category. Default is RT for retention time precision. Pep_quant equals quantitative precision on peptide-level. PG_quant equals quantitative precision on proteingroup-level. |
Quantitative or retention time precision are plotted as cumulative density.
This function returns a density plot.
Oliver Kardell
# Load libraries
library(dplyr)
library(comprehenr)
library(tibble)
# Example data
set.seed(123)
data <- list(
"A" = tibble::tibble(
Analysis_mpwR = rep("A", times = 10),
CV_Retention.time_mpwR = sample(1:20, 10),
CV_Peptide_LFQ_mpwR = sample(1:30, 10),
CV_ProteinGroup_LFQ_mpwR = sample(1:30, 10)),
"B" = tibble::tibble(
Analysis_mpwR = rep("B", times = 10),
CV_Retention.time_mpwR = sample(1:20, 10),
CV_Peptide_LFQ_mpwR = sample(1:30, 10),
CV_ProteinGroup_LFQ_mpwR = sample(1:30, 10))
)
# Plot
plot_CV_density(
input_list = data,
cv_col = "Pep_quant"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.