plot_variation: Plots the coefficient of variation for different replicates

Description Usage Arguments Value Author(s) Examples

View source: R/plot_variation.R

Description

This function plots the coefficient of variation within replicates for a given value. If decoys are present these are removed before plotting.

Usage

1
2
3
plot_variation(data, column.values = "Intensity", 
Comparison = transition_group_id + Condition ~ BioReplicate,
fun.aggregate = NULL, label=TRUE, ...)

Arguments

data

Data frame that is produced by the OpenSWATH/pyProphet workflow

column.values

Indicates the columns for which the variation is assessed. This can be the Intensity or Signal, but also the retention time.

Comparison

The comparison for assessing the variability. Default is to assess the variability per transition_group_id and Condition over the different Replicates. Comparison is performed using the dcast() function of the reshape2 package.

fun.aggregate

If for the comparison values have to be aggregated one needs to provide the function here.

label

Option to print value of median cv.

...

further arguments passed to method.

Value

Returns a list with the data and calculated cv and a table that summarizes the mean, median and mode cv per Condition (if Condition is contained in the comparison). In addition it plots in Rconsole a violin plot with the observed coefficient of variations.

Author(s)

Peter Blattmann

Examples

1
2
3
4
data("OpenSWATH_data", package="SWATH2stats")
data("Study_design", package="SWATH2stats")
data <- sample_annotation(OpenSWATH_data, Study_design)
plot_variation(data)

SWATH2stats documentation built on May 31, 2017, 11:18 a.m.

Search within the SWATH2stats package
Search all R packages, documentation and source code