plot.ph2rand_terminal: Plot the terminal points of a randomised clinical trial...

Description Usage Arguments Value See Also Examples

View source: R/plot.ph2rand_terminal.R

Description

plot.ph2rand_terminal plots the terminal points of a design returned by terminal.

Usage

1
2
## S3 method for class 'ph2rand_terminal'
plot(x, output = FALSE, ...)

Arguments

x

An object of class ph2rand_terminal, as returned by terminal.

output

A logical variable indicating whether outputs should be returned by the function.

...

Not currently used.

Value

If output = TRUE, a list containing each of the input parameters along with plot(s) in the slot $plots, which gives the produced plot(s) of the terminal points.

See Also

des_one_stage, des_two_stage, terminal, plot.ph2rand_des.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# The default two-stage design
des  <- des_two_stage()
# Its terminal points across stages 1 and 2
term <- terminal(des)
# The plot of them
plot(term)
# Its terminal points from stage 2 only
term <- terminal(des, 2)
# The plot of them
plot(term)

ph2rand documentation built on March 3, 2021, 1:11 a.m.