View source: R/get_bar_labels_resp.R
get_bar_labels_resp | R Documentation |
mk_barplot_resp
and mk_barploth_resp
.
Not for external use.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
.
get_bar_labels_resp(df, gp, resp, fillby)
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. |
A data frame of bar labels and their positions.
mk_barplot_resp
and mk_barploth_resp
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.