mmstat.plotTestRegions | R Documentation |
Plots the test regions in a plot
mmstat.plotTestRegions( crit, xlim, ylim, cex, close = FALSE, col = "black", label = NULL, pos = 1 )
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: |
col |
color: pecification for the default plotting color (default: |
label |
unused |
pos |
unused |
adds test regions to a plot
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.