plotPowerHist: Plot the histogram of power

Description Usage Arguments Value Author(s) Examples

View source: R/plots.R

Description

Using histogram-alike graph to visualize the distribution of all genes and DE genes in all user specified strata.

Usage

1
plotPowerHist(powerOutput, simResult, main = "Histogram of power", return = FALSE)

Arguments

powerOutput

Result object from "comparePower" function.

simResult

Result object from "runSims" function.

main

Figure caption.

return

Return a matrix for average number of genes and true DE genes in each strata.

Value

A matrix of two rows. First row is for number of genes, and the second row is for number of DE genes. Columns are strata.

Author(s)

Hao Wu <hao.wu@emory.edu>

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
simOptions = RNAseq.SimOptions.2grp()
## run a few simulations
simRes = runSims(Nreps=c(3,5,7), sim.opts=simOptions, nsims=5,
                 DEmethod="edgeR")

## using FDR 0.1 to call DE, then look at power curves and summary
powers = comparePower(simRes)
plotPowerHist(powers, simRes)

## End(Not run)

haowulab/PROPER documentation built on Nov. 30, 2020, 2:22 a.m.