plot_pp_sample_missing {MetProc} | R Documentation |
Plot Pooled Plasma and Biological Sample Missing Rates
Description
Calculates the missing rate of the pooled plasma columns and biological sample columns for each metabolite. Plots a scatterplot showing the correspondence between the two.
Usage
plot_pp_sample_missing(df, ppkey = "PPP", sidkey = "X")
Arguments
df |
The metabolomics dataset, ideally read from the |
ppkey |
The unique prefix of pooled plasma samples. Default is |
sidkey |
The unique prefix of biological samples. Default is |
Value
Returns a scatterplot comparing the pooled plasma missing rate to the sample missing rate
See Also
See MetProc-package
for examples of running the full process.
Examples
library(MetProc)
#Read in metabolomics data
metdata <- read.met(system.file("extdata/sampledata.csv", package="MetProc"),
headrow=3, metidcol=1, fvalue=8, sep=",", ppkey="PPP", ippkey="BPP")
#Plot the pooled plasma missing rate against the sample missing rate
plot_pp_sample_missing(metdata,ppkey='PPP',sidkey='X')