feature_plots: feature plots to file

View source: R/feature_plots.R

feature_plotsR Documentation

feature plots to file

Description

This function to plots a scatter plot, a histogram, and a few summary statistics of each feature in a data frame to a pdf file

Usage

feature_plots(wdata, outdir = NULL, nsd = 5)

Arguments

wdata

a data frame of feature (ex: metabolite or protein) abundance levels

outdir

output directory path

nsd

number of SD from the mean to plot an outlier line on the scatter plot and histogram

Value

a ggplot2 object

Examples

ex_data = sapply(1:20, function(x){ rnorm(250, 40, 5) })
colnames(ex_data) = paste0("var", 1:ncol(ex_data))
feature_plots(ex_data)


MRCIEU/metaboprep documentation built on Jan. 28, 2023, 7:29 p.m.