plot_residuals: Plot for chi-squared residuals

Description Usage Arguments Details Value Author(s)

View source: R/plot_residuals.r

Description

This function allows you to plot the residuals of a chi-squared two-sample test to infer bins that differ significantly from expected values.

Usage

1

Arguments

chisq

output from chi-squared two-sample test.

Details

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.

Value

Returns an object of class ggplot.

Author(s)

Adam Waring - adam.waring@msdtc.ox.ac.uk


adamwaring/POSBURDEN documentation built on Feb. 21, 2020, 11:21 a.m.