Learn R Programming

VisualizeSimon2Stage (version 0.2.2)

gg_ph2simon: Plot Simon's Two-Stage Design

Description

Plot ph2simon object using ggplot2.

Usage

# S3 method for ph2simon
autoplot(object, ...)

# S3 method for ph2simon4 autoplot(object, ...)

# S3 method for ph2simon4 autolayer( object, r1 = object@r1, n1 = object@n1, r = object@r, n = object@n, pu = object@pu, pa = object@pa, type = object@type, ... )

# S3 method for ph2simon autolayer(object, ...)

Value

Function autoplot.ph2simon() returns a ggplot object.

Function autolayer.ph2simon() returns a list of ggproto and labels.

Arguments

object

a ph2simon or ph2simon4 object

...

parameters of function ph2simon4(), most importantly type

r1, n1, r, n

(optional) integer scalars, see ph2simon4.

pu, pa

double scalars, see function ph2simon

type

see slot @type of ph2simon4 object