get_bar_labels_resp: Helper function for 'mk_barplot_resp' and 'mk_barploth_resp'....

View source: R/get_bar_labels_resp.R

get_bar_labels_respR Documentation

Helper function for mk_barplot_resp and mk_barploth_resp. Not for external use.

Description

get_bar_labels_resp takes in the original data frame, and returns a data frame of labels and their postions for mk_barplot_resp and mk_barploth_resp.

Usage

get_bar_labels_resp(df, gp, resp, fillby, is_resp_pct, show_pct)

Arguments

df

Data frame of the original data where bar charts are made from.

gp

String. Name of a categorical variable to group the response var.

resp

String. Name of a continuous variable as the response var.

fillby

String. Name of a second categorical variable for sub-dividing and coloring the bars.

Value

A data frame of bar labels and their positions.

See Also

mk_barplot_resp and mk_barploth_resp.


gmlang/ezplot documentation built on Sept. 18, 2022, 6:33 a.m.