powerPlot: Power plots.

View source: R/MultiOmicsPower14.R

powerPlotR Documentation

Power plots.

Description

Plotting statistical power versus sample size per omic from optimal sample size results. and statistical power versus Cohen's d cutoffs (in percentiles).

Usage

powerPlot(parameters, optimalSampleSize, omicCol = NULL)

Arguments

parameters

List with as many elements as omic data types. For each omic, each element of this list is another list containing the different parameters needed to compute power. See MultiPower results for more details.

optimalSampleSize

R object containing the results of optimalRep.

omicCol

The color that will be used to plot each omic. It must be a vector with length equal to the number of omics. If it is NULL (default), default colors are used.

Value

List containing the values used for the plot or plots.

Author(s)

Sonia Tarazona


ConesaLab/MultiPower documentation built on April 16, 2023, 11:39 a.m.