plot.VTTRUEPS: Plot true parameters

View source: R/visit_simu.R

plot.VTTRUEPSR Documentation

Plot true parameters

Description

Plot true DLT risk rates and response rates.

Usage

## S3 method for class 'VTTRUEPS'
plot(x, draw.levels = NULL, draw.curves = 1:6,
  legends = NULL, ltys = c(1, 1, 2, 2, 2, 2), pch = 19:24,
  ylim = c(0, 1), cols = c("red", "blue", "brown", "black", "gray",
  "green"), add.legend = TRUE, ...)

Arguments

x

A class VTTRUEPS matrix generated by vtScenario

draw.levels

Select dose levels to draw. Default NULL draws all levels.

draw.curves

Indicate which curves to plot. The options are

  • 1:p: DLT risk rate

  • 2:q: Response rate

  • 3:\theta_{00}

  • 4:\theta_{01}

  • 5:\theta_{10}

  • 6:\theta_{11}

See visit for details.

legends

Line legends

ltys

Line types

pch

Line PCH

ylim

Y limits

cols

Line colors

add.legend

Include legends (TRUE) or not (FALSE)

...

optional arguments for plot

Examples

rst.sce <- vtScenario(tox = c(0.05, 0.05, 0.08),
                      res = c(0.2, 0.3, 0.5),
                      rho = 1)
plot(rst.sce, draw.levels = 1:2, draw.curves=1:6)


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