Learn R Programming

uwo4419 (version 0.3.0)

plotStdRes: Plot Standardized Residuals from a Cross-tabulation

Description

Uses ggplot2 to visualize the standardized residuals from a cross-tabulation

Usage

plotStdRes(x)

Arguments

x

A cross-tabulation of two variables

Value

A ggplot

Examples

Run this code
# NOT RUN {
alberta$k6group <- rio::factorize(alberta$k6group)
alberta$d2 <- rio::factorize(alberta$d2)
tab <- with(alberta, table(k6group, d2))
plotStdRes(tab)
# }

Run the code above in your browser using DataLab