mmstat.plotTestRegions {HKRbook}R Documentation

mmstat.plotTestRegions

Description

Plots the test regions in a plot

Usage

mmstat.plotTestRegions(
  crit,
  xlim,
  ylim,
  cex,
  close = FALSE,
  col = "black",
  label = NULL,
  pos = 1
)

Arguments

crit

numeric(2): critical value(s)

xlim

numeric(2): the x limits of the plot

ylim

numeric(2): the y limits of the plot

cex

numeric: amount by which plotting text should be magnified relative to the default

close

logical: should the region box be closed by vertical lines (default: FALSE)

col

color: pecification for the default plotting color (default: "black")

label

unused

pos

unused

Value

adds test regions to a plot

Examples

x  <- (-30:30)/10
px <- dnorm(x)
plot(x, px, type="l", ylim=c(-0.25, max(px)), xlim=range(x))
mmstat.plotTestRegions(crit=c(-1.96, +1.96), xlim=range(x), ylim=c(-0.2, -0.1), cex=1)

[Package HKRbook version 0.1.3 Index]