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)
# ## End(Not run)
## Not run: ## these are interactive and do not work in static checking of the code
# NTplot(mean0=0, mean1=1, shiny=TRUE)
# NTplot(shiny=TRUE, px.height=475) ## default value is 575
# NTplot(t.test(x1, x2), shiny=TRUE, mean1=1)
# NTplot(power.t.test(power = .90, delta = 1, alternative = "one.sided"), shiny=TRUE)
# NTplot(NT.object, shiny=TRUE)
#
# ## run the shiny app
# shiny::runApp(system.file("shiny/NTplot", package="HH"))
# ## End(Not run)
Run the code above in your browser using DataCamp Workspace