powered by
Uses ggplot2 to visualize the standardized residuals from a cross-tabulation
ggplot2
plotStdRes(x)
A cross-tabulation of two variables
A ggplot
# 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