Plot function for 'BATSS' outputs
plot.batss.Rd
Plot for objects of class 'batss'
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
title
equalsTRUE
(default), the title 'Under 'H1' or 'Under 'H0' (depending on the argumenthypothesis
) is added to the outer margin of the plot. No outer margin space is added iftitle = FALSE
.- legend
a logical (with default set to
TRUE
) indicating if, when 'type = estimates
', a legend should be added at the bottom of the plot.- 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
type = "estimates"
. The 5th colour is used for lines. Default to c("#8B897040","#008B0040","#8B3A3A40","#FF990075","blue") where the 2 last digits of the long hexadecimal strings of colours 1 to 4 specify the level of transluency. Refer to the Section 'colour specification' in par for details. If the length ofcol
equals 1, the same colour is used for all cases. Whentype = "size"
, the 3rd and 5th colours of the vectorcol
are used to display boxplots and lines.- ...
Additional arguments affecting the plot produced, like ylim and ylab.
See also
batss.glm()
, the function generating S3 objects of class 'batss'.