Skip to contents

Create concatenated charts showing the heatmap of two categorical variables and the barcharts for occurrance of these variables. Heatmap will be on the left and the two barcharts will be on the right in the same column.

Usage

cat_dist_heatmap(
  cat_1,
  cat_2,
  data,
  title = "",
  heatmap = TRUE,
  barchart = TRUE
)

Arguments

cat_1

Name of the column name for the first categorical variable.

cat_2

Name of the column name for the second categorical variable.

data

Target data frame for visualization.

title

Title for the chart.

heatmap

Whether to include a heatmap plot or not.

barchart

Whether to include the barchart or not.

Value

A concatenated ggplot chart consists of a heatmap and 2 barcharts. @examples cat_dist_heatmap( cat_1 = school_type, cat_2 = program_type, data = data, title = 'School Type vs Program Type', lab_1 = 'School type', lab_2 = 'Program type', heatmap = True, barchart = True)