precisionPlot: Precision plot

Description Usage Arguments

View source: R/plotingFunctions.R

Description

This function takes a results summary from the compBayes function. The output is a plot of showing posterior means on the x-axis and precision on the y-axis, where precision ploted as the inverse of the posterior coefficient of variation.

Usage

1
2
precisionPlot(RES, byCond = FALSE, nullSet = c(-1, 1),
  avgCond = FALSE, ptm = FALSE)

Arguments

RES

A results list generated from the function compBayes, which will be found in either the first (for protein summaries) or second (for ptm's) component of the result list object.

byCond

A boolean parameter which determines if separate plots should be made for each condition. The default is FALSE which results in the creation of a single plot.

nullSet

An interval which will determine the color scheme of the plot. The probability of being in the nullSet interval is approximated and points are colored according to categories of this probability. If a researcher is only interested in fold-changes greater than 2 then this interval should be set to (-1, 1).

avgCond

A boolean parameter that determines whether or not plots will be based on heierarchical population level mean parameters or average within sample parameters. The default is to use the population level parameter, however with very small sample sizes this plot may not be useful.


ColtoCaro/compMS documentation built on March 13, 2020, 10:11 a.m.