- t
A numeric value indicating the observed t statistic. Alternatively, you can pass an object of class htest
created by the function t.test()
or cor.test()
.
- df
A numeric value indicating the degrees of freedom. This argument is optional if you are using an htest
object as the t
argument.
- tails
A character that indicates whether to plot a one ("one"
) or two ("two"
) tailed t-test (optional). By default, a two-tailed test is plotted.
- blank
A logical that indicates whether to hide (blank = TRUE
) the test statistic value, p value and cutline. The corresponding colors are actually only made transparent when blank = TRUE
, so that the output is scaled exactly the same (this is useful and especially intended for step-by-step explanations).
- xmax
A numeric including the maximum for the x-axis. Defaults to "auto"
, which scales the plot automatically (optional).
- title
A character or expression indicating a custom title for the plot (optional).
- xlabel
A character or expression indicating a custom title for the x axis (optional).
- ylabel
A character or expression indicating a custom title for the y axis (optional).
- fontfamily
A character indicating the font family of all the titles and labels (e.g. "serif"
(default), "sans"
, "Helvetica"
, "Palatino"
, etc.) (optional).
- colormiddle
A character indicating the color for the "middle" area under the curve (optional).
- colorsides
A character indicating the color for the "side(s)" area(s) under the curve (optional).
- colormiddlecurve
A character indicating the color for the "middle" part of the curve (optional).
- colorsidescurve
A character indicating the color for the "side(s)" part of the curve (optional).
- colorcut
A character indicating the color for the cut line at the observed test statistic (optional).
- colorplabel
A character indicating the color for the label of the p-value (optional). By default, for color consistency, this color is the same as color of colorright
.
- theme
A character indicating one of the predefined color themes. The themes are "default"
(light blue and red), "blackandwhite"
, "whiteandred"
, "blueandred"
, "greenandred"
and "goldandblue"
) (optional). Supersedes colormiddle
and colorsides
if another argument than "default"
is provided.
- signifdigitst
A numeric indicating the number of desired significant figures reported for the t label (optional).
- curvelinesize
A numeric indicating the size of the curve line (optional).
- cutlinesize
A numeric indicating the size of the cut line(s) (optional). By default, the size of the curve line is used.