vtTrack: Plot the track plot of dose escalation

View source: R/visit_analysis.R

vtTrackR Documentation

Plot the track plot of dose escalation

Description

Generate a plot representing the observed data and dose escalation decisions.

Usage

vtTrack(obs.all, cex.txt = 0.9, decision = 1, max.level = NULL,
  letters = c("E", "C", "S"), colors = c("green", "yellow", "red"),
  height = 0.5, end.width = 2, end.height = height,
  cex.roman = 0.9, cex.end = 0.9, ...)

Arguments

obs.all

All observations collected in a matrix with 5 columns. Column 1 is the index of interim analysis starting from 1. Columns 2-5 correspond to columns 1-4 in obs.y for vtPost.

cex.txt

Text size of numbers in the plot

decision

Dose escalation decision. The options are

  • 1: Escalate

  • 2: Continue at the same level

  • 3: Stop the trial

max.level

Maximum number of dose levels shown in the plot

letters

Labels for dose escalation actions 1-3. Default values are "E", "C", "S"

colors

Possible colors in the last action box

height

Height of each individual box

end.width

Width of the last action box

end.height

Height of the last action box

cex.roman

Text size of the roman numerals

cex.end

Text size of the letter in the last action box

...

Optional arguments for plot.

Examples


obs.all  <- rbind(c(1, 5, 2, 0, 0),
                  c(2, 3, 4, 0, 0),
                  c(3, 1, 6, 0, 0));
vtTrack(obs.all, end.width = 0.8, max.level = 3, decision = 3);


visit documentation built on Aug. 9, 2023, 5:08 p.m.