make_barplot2: Barplot for Categorical by Categorical

View source: R/see_cat_vars.R

make_barplot2R Documentation

Barplot for Categorical by Categorical

Description

Create a barplot for a categorical variable grouped by another categorical variable, with percent and count labels. Good for plotting ten or less total categories.

Usage

make_barplot2(data, cat_var, grp_var)

Arguments

data

dataset that contains the categorical variable

cat_var

name of the categorical variable to be plotted as a string

grp_var

name of a grouping categorical variable as a string

Value

none


sarazong/SZRtools documentation built on Feb. 8, 2024, 6:49 a.m.