xbar: A Crosstab Stacked Bar Graph

Description Usage Arguments Examples

View source: R/xbar.R

Description

This function creates a crosstabulation heatmap

Usage

1
xbar(df, var1, var2, count = TRUE)

Arguments

df

Name of the Dataset

var1

This will be the variable that you do group_by with

var2

This is the variable that will be counted

count

Will add the total count to each square if added

Examples

1
mtcars %>% xbar(cyl, am)

ryanburge/socsci documentation built on June 6, 2020, 2:37 a.m.