plot.VTDEC: Plot decision map

View source: R/visit_analysis.R

plot.VTDECR Documentation

Plot decision map

Description

Plot a decision map based on a class VTDEC object that contains the current posterior analysis results

Usage

## S3 method for class 'VTDEC'
plot(x, margin = 0.003, nms = c("TT", "NME", "SE",
  "UN"), col.reg = "pink", col.prob = "blue", cex.prob = 0.9,
  cex.nms = 1, ...)

Arguments

x

A class VTDEC list generated by vtDecMap

margin

Margin between regions in the decision map

nms

Labels of the regions on a decision map. Defaults are:

  • TT:Too Toxic

  • NME:No More Effective

  • SE:Safe and Effective

  • UN:Uncertain

col.reg

Background color of the selected region

col.prob

Text color of the selected region.

cex.prob

Text size of the probabilities

cex.nms

Text size of the region labels

...

Optional arguments for plot.

Examples


etas       <- c(0.1, 0.3)
dec.cut    <- c(0.6,0.6,0.6)
cur.obs.y  <- c(3, 2, 1, 1)
prev.obs.y <- c(5, 2, 0, 0)
rst.inter  <- vtInterim(cur.obs.y,  prev.obs.y = prev.obs.y,
                        prob.mdl = "NONPARA", etas = etas, dec.cut = dec.cut,
                        nsmp = 2000);
plot(rst.inter)


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