# NOT RUN {
x1 <- rnorm(12)
x2 <- rnorm(12, mean=.5)
NT.object <- NTplot(mean0=0, mean1=1)
NT.object
attr(NT.object, "scales")
attr(NT.object, "prob")
cat(attr(NT.object, "call"), "\n") ## the cat() is needed to unescape embedded quotes.
NTplot(t.test(x1, x2))
NTplot(power.t.test(power = .90, delta = 1, alternative = "one.sided"))
# }
# NOT RUN {
## 22 distinct calls are shown in
demo(NTplot, ask=FALSE)
# }
# NOT RUN {
# }
# NOT RUN {
## these are interactive and do not work in static checking of the code
if (interactive())
NTplot(mean0=0, mean1=1, shiny=TRUE)
if (interactive())
NTplot(shiny=TRUE, px.height=475) ## default value is 575
if (interactive())
NTplot(t.test(x1, x2), shiny=TRUE, mean1=1)
if (interactive())
NTplot(power.t.test(power = .90, delta = 1, alternative = "one.sided"), shiny=TRUE)
if (interactive())
NTplot(NT.object, shiny=TRUE)
## run the shiny app
if (interactive()) shiny::runApp(system.file("shiny/NTplot", package="HH"))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab