NormalAndTPower | R Documentation |
Construct a power graph based on the NTplot
. The exported function
powerplot
calls NormalAndTPower
to construct a power curve or beta curve (operating
characteristic curve) (or both) from its argument and catenates it to the original
graph. The unexported function NormalAndTPower
does the
construction.
powerplot(nt, ...)
## S3 method for class 'NormalAndTplot'
powerplot(nt, power=TRUE, beta=FALSE, ...,
hh=if (power && beta) c(6,2,2) else c(6,2))
NormalAndTPower(nt,
which=c("power","beta"),
digits=4,
digits.top.axis=digits, digits.left=digits,
col.power=attr(nt, "color")["col.power"],
col.beta=attr(nt, "color")["col.beta"],
cex.pb.axis=1, cex.left.axis=1, cex.xbar=1,
lwd.reference=4, lwd.line=2,
main=which, ...)
nt |
For the generic |
power , beta |
Logical. If |
which |
Which graph is to be displayed? |
... |
Additional arguments passed on to methods. |
hh |
The |
digits.top.axis , digits.left , digits , cex.pb.axis , cex.left.axis , cex.xbar |
|
col.power , col.beta |
Colors used for the crosshairs on the power and beta
panels.
The default values are the colors used for the power and beta regions of the
|
lwd.reference , lwd.line |
|
main |
Main title for graph. |
"trellis"
object.
Richard M. Heiberger (rmh@temple.edu)
nt <- NTplot(mean0=2, mean1=4, sd=3, n=20, xlim=c(-.1, 6.1), xbar=3.5)
powerplot(nt)
## Not run:
tt <- NTplot(mean0=2, mean1=4, sd=3, n=20, xlim=c(-.1, 6.1), xbar=3.5, df=4, distribution.name="t")
powerplot(tt)
ntc <- NTplot(xbar=2, sd=3, n=20, xlim=c(-.1, 4.1), type="confidence",
alpha.left=.025, alpha.right=.025)
ntc
try(powerplot(ntc))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.