View source: R/drawDiagramGeneric.R
drawDiagramGeneric | R Documentation |
drawDiagramGeneric
drawDiagramGeneric(n, go, nogo, xmax = NULL, ymax = NULL, ylab = NULL)
n |
Maximum sample size |
go |
Two-column matrix detailing stopping boundaries for a go decision or efficacy stopping, where the first column contains the number of responses and the second column contains the corresponding number of participants so far. |
nogo |
Two-column matrix detailing stopping boundaries for a no go decision or futility stopping, where the first column contains the number of responses and the second column contains the corresponding number of participants so far. |
xmax |
Optional. Maximum value for x axis. |
ymax |
Optional. Maximum value for y axis. |
ylab |
Optional. Label for y axis. |
An object of class ggplot
, showing a visualisation of the
maximum sample size and inputted stopping boundaries.
Martin Law, martin.law@mrc-bsu.cam.ac.uk
go <- cbind(6:8, rep(8,3))
nogo <- cbind(0:5, rep(8,6))
drawDiagramGeneric(n=8, go=go, nogo=nogo, ylab="Number of successes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.