plot.AnalysisResults {rpact}  R Documentation 
Plots the conditional power together with the likelihood function.
## S3 method for class 'AnalysisResults' plot(x, y, ..., type = 1L, nPlanned = NA_real_, stage = x$getNumberOfStages(), allocationRatioPlanned = NA_real_, main = NA_character_, xlab = NA_character_, ylab = NA_character_, legendTitle = "", palette = "Set1", legendPosition = NA_integer_, showSource = FALSE)
x 
The analysis results at given stage, obtained from 
y 
Not available for this kind of plot (is only defined to be compatible to the generic plot function). 
... 
Optional

type 
The plot type (default = 1). Note that at the moment only one type (the conditional power plot) is available. 
nPlanned 
The sample size planned for the subsequent stages. It should be a vector with length equal to the remaining stages and is the overall sample size in the two treatment groups if two groups are considered. 
stage 
The stage number (optional). Default: total number of existing stages in the data input used to create the analysis results. 
allocationRatioPlanned 
The allocation ratio n1/n2 for two treatment groups planned for the subsequent stages, the default value is 1. 
main 
The main title, default is 
xlab 
The xaxis label, default is 
ylab 
The yaxis label. 
legendTitle 
The legend title, default is 
palette 
The palette, default is 
legendPosition 
The position of the legend.
By default (

showSource 
If 
The conditional power is calculated only if effect size and sample size is specified.
design < getDesignGroupSequential(kMax = 2) dataExample < getDataset( n = c(20, 30), means = c(50, 51), stDevs = c(130, 140) ) result < getAnalysisResults(design = design, dataInput = dataExample, thetaH0 = 20, nPlanned = c(30), thetaH1 = 1.5, stage = 1) if (require(ggplot2)) plot(result, thetaRange = c(0, 100))