Description Usage Arguments Details Value Author(s)
View source: R/plot_residuals.r
This function allows you to plot the residuals of a chi-squared two-sample test to infer bins that differ significantly from expected values.
1 | plot_residuals(chisq)
|
chisq |
output from chi-squared two-sample test. |
This method plots residuals as a 2 x m table where m is the number of bins in the chisq.test.
Residuals are standardized by the standard deviation of the residuals. Within each cell of the table is a circle whose color and size relate to the size of the residual. Residuals that are significant at a nominal 0.05 (two-tailed) after Bonferonni correction are highlighted with an asterix.
Returns an object of class ggplot.
Adam Waring - adam.waring@msdtc.ox.ac.uk
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.