Merged visualization of proportion barplot and Chi-square residual heatmap between two variables of interest
a Seurat object containing Kandinsky data
character string, name of the first variable
character string, name of the second variable
lower and upper residual caps for heatmap colour gradient
color palette to use for plotting
boolean, whether returning heatmap with cells annotated for significance or not (based on permutation test)
numeric, number of var.1 and var.2 reshuffling to estimate enrichment pvalue between var.1 and var.2 via permutation test. Default is set to 1000
numeric, adjusted pvalue threshold to define significant var.1/var.2 chisquare residuals
character string specifying the alternative hypothesis, must be one of "two.sided", "greater" (default) or "less".