plot_chisq | R Documentation |
Draw a chi-square distribution curve with appropriate shading to the right of the test statistic for chi-square hypothesis tests
plot_chisq(df, shadeValues = NULL, col.shade = "cornflowerblue", ...)
df |
The degrees of freedom for the chi-square distribution |
shadeValues |
A single value that identifies the boundary of the shaded region |
col.shade |
The color of the shaded region |
... |
Other graphical parameters passed to plot (e.g.,
|
Since shadeValues
is a
single number, the shaded region will be to the right of
shadeValues
since we are interested only in chi-square hypothesis testing.
A plot of a chi-square distribution curve with optional shading.
plot_norm
# Shade the area for the chi-square test statistic of 4.1 with degrees of freedom 2. plot_chisq(df = 2, shadeValues = 4.1) # Shade the area for the chi-square test statistic of 8.223 with degrees of freedom 10. plot_chisq(df = 10, shadeValues = 8.233)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.