plotEvalRes: Visualize power assessment

Description Usage Arguments Value Author(s) Examples

Description

This function plots the results of evaluateSim for assessing the error rates and sample size requirements.

Usage

1
2
plotEvalRes(evalRes, rate=c('marginal', 'stratified'),
                   quick=TRUE, annot=TRUE)

Arguments

evalRes

The output of evaluateSim.

rate

Character vector defining whether the marginal or condtional rates should be plotted. Conditional depends on the choice of stratify.by in evaluateSim.

quick

A logical vector. If TRUE, the TPR and FDR are only plotted. If FALSE, then all rates are plotted.

annot

A logical vector. If TRUE, a short figure legend under the plot is included.

Value

A ggplot object.

Author(s)

Beate Vieth

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
## for example simres object see \code{\link{simulateDE}}
evalres <- evaluateSim(simRes=simres,
alpha.type="adjusted",
MTC="BH", alpha.nominal=0.1,
stratify.by="mean", filter.by="none",
target.by="lfc", delta=0)
plotEvalRes(evalRes=evalres, rate ="marginal", quick=T, annot=T)
plotEvalRes(evalRes=evalres, rate ="stratified", quick=T, annot=T)

## End(Not run)

bvieth/powsim documentation built on May 13, 2019, 9:04 a.m.