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)

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.


cabaceo/shinymod documentation built on Sept. 8, 2023, 12:23 p.m.