plot-DataDA-missing-method: Plot Method for the 'DataDA' Class

plot,DataDA,missing-methodR Documentation

Plot Method for the DataDA Class

Description

[Stable]

A method that creates a plot for DataDA object.

Usage

## S4 method for signature 'DataDA,missing'
plot(x, y, blind = FALSE, ...)

Arguments

x

(DataDA)
object we want to plot.

y

(missing)
missing object, for compatibility with the generic function.

blind

(flag)
indicates whether to blind the data. If TRUE, then placebo subjects are reported at the same level as the active dose level in the corresponding cohort, and DLTs are always assigned to the first subjects in a cohort.

...

passed to the first inherited method plot after this current method.

Value

The ggplot2 object.

Examples

# Create some data of class 'DataDA'.
my_data <- DataDA(
  u = c(42, 30, 15, 5, 20, 25, 30, 60),
  t0 = c(0, 15, 30, 40, 55, 70, 75, 85),
  Tmax = 60,
  x = c(0.1, 0.5, 1.5, 3, 6, 10, 10, 10),
  y = c(0, 0, 1, 1, 0, 0, 1, 0),
  doseGrid = c(0.1, 0.5, 1.5, 3, 6, seq(from = 10, to = 80, by = 2))
)

# Plot the data.
plot(my_data)

Roche/crmPack documentation built on April 30, 2024, 3:19 p.m.