gg_ph2simon {VisualizeSimon2Stage}R Documentation

Plot Simon's Two-Stage Design

Description

Plot ph2simon object using ggplot2.

Usage

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

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

## S3 method for class '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 class 'ph2simon'
autolayer(object, ...)

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

Value

Function autoplot.ph2simon() returns a ggplot object.

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


[Package VisualizeSimon2Stage version 0.2.2 Index]