plot.batss {BATSS} | R Documentation |
Plot function for 'BATSS' outputs
Description
Plot for objects of class 'batss'
Usage
## S3 method for class 'batss'
plot(
x,
type = "size",
hypothesis = "H1",
title = TRUE,
legend = TRUE,
col = c("#008B0040", "#8B3A3A40", "#8B897040", "#FF990075", "blue"),
...
)
Arguments
x |
An object of class 'batss' (i.e., output of the function batss.glm). |
type |
A character string indicating the type of plot with options 'size' (default) to display the total and per group sample size observed in the Monte Carlo trials, and 'estimates' to display the Monte Carlo trial target estimates as a function of the sample size. |
hypothesis |
A character string indicating which alternative hypothesis to use for analyses considering both "H0" and "H1", with options "H1" (default) and "H0". |
title |
Either a logical indicating if a title should be added or a string (of class character) indicating the title to be added. If |
legend |
a logical (with default set to |
col |
a vector of length 5 specifiying the colour respectively assigned to i/ efficacy, ii/ futility, iii/ neither or iv/ both when color-coding trials when |
... |
Additional arguments affecting the plot produced, like ylim and ylab. |
Value
Generates graphical displays of results for objects of class 'batss'.
See Also
batss.glm()
, the function generating S3 objects of class 'batss'.