Learn R Programming

OlinkAnalyze (version 4.2.0)

olink_dist_plot: Function to plot the NPX distribution by panel

Description

Generates boxplots of NPX vs. SampleID colored by QC_Warning (default) or any other grouping variable and faceted by Panel using ggplot and ggplot2::geom_boxplot.

Usage

olink_dist_plot(df, color_g = "QC_Warning", ...)

Value

An object of class "ggplot" which displays NPX distribution for each sample per panel

Arguments

df

NPX data frame in long format. Must have columns SampleID, NPX and Panel

color_g

Character value indicating which column to use as fill color (default: QC_Warning)

...

Color option passed to specify color order.

Examples

Run this code
olink_dist_plot(npx_data1, color_g = "QC_Warning")

Run the code above in your browser using DataLab