plotPredPwr: Observe Predicted Power Within Different LFC Scales

Description Usage Arguments Value Examples

View source: R/plotPredPwr.R

Description

With a complete power list and LFC list returned from predictPower, power estimates can be observed dynamically within specified LFC ranges.

Usage

1
plotPredPwr(inputObject, minLFC, maxLFC, LFCscale = 1)

Arguments

inputObject

a result container object PowerExplorerStorage

minLFC

default as 0, the left edge of the LFC range within which genes will be included in the graph.

maxLFC

default as NA (the maximun value in data will be used) the right edge of the LFC range within which genes will be included in the graph.

LFCscale

the size of each unit when segmenting predicted power by LFC

Value

plot(s) of power density under multiple sample sizes

Examples

1
2
3
4
5
6
7
# load an example onject containing
# predicted power under different sample sizes
data(exampleObject)
plotPredPwr(exampleObject)
plotPredPwr(exampleObject)
#It is possible to observe power trend in different scales and ranges of LFCs
plotPredPwr(exampleObject, minLFC=0, maxLFC=2, LFCscale=0.5)

PowerExplorer documentation built on April 28, 2020, 9:03 p.m.