- chisq
A numeric value indicating the observed \(\chi^2\) statistic. Alternatively, you can use an object of class htest
created by the function chisq.test()
.
- df
A numeric value indicating the degrees of freedom. This argument is optional if you are using an htest
object as the chisq
argument.
- 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).
- colorleft
A character indicating the color for the "left" area under the curve (optional).
- colorright
A character indicating the color for the "right" area under the curve (optional).
- colorleftcurve
A character indicating the color for the "left" part of the curve (optional).
- colorrightcurve
A character indicating the color for the "right" part of the curve (optional). By default, for color consistency, this color is also passed to the label, but this can be changed by providing an argument for the colorlabel
parameter.
- 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 colorleft
and colorright
if another argument than "default"
is provided.
- signifdigitschisq
A numeric indicating the number of desired significant figures reported for the \(\chi^2\) label (optional).
- curvelinesize
A numeric indicating the size of the curve line (optional).
- cutlinesize
A numeric indicating the size of the cut line (optional). By default, the size of the curve line is used.
- p_value_position
A numeric vector of length 2, indicating the x and y coordinates of the p-value label. By default, the position is set to "auto"
. Note that the absolute value is used, and the sign is ignored.