bullet_line_chart {GenderInfer} | R Documentation |
Function to create a bullet chart with a line chart in the same graphical frame; to compare different baselines for gender analysis.
Description
Function to create a bullet chart with a line chart in the same graphical frame; to compare different baselines for gender analysis.
Usage
bullet_line_chart(
data_df,
baseline_female,
x_label,
y_bullet_chart_label,
baseline_label,
line_chart_df,
line_chart_scaling,
y_line_chart_label,
line_label
)
Arguments
data_df |
dataframe in output from |
baseline_female |
numeric vector containing the baseline for each level |
x_label |
label for x axis for both charts |
y_bullet_chart_label |
label for y axis of the bullet chart |
baseline_label |
label used to define the baseline name. |
line_chart_df |
data frame containing the total number of submissions |
line_chart_scaling |
factor of conversion for second y-axis |
y_line_chart_label |
label the y-axis of the line chart |
line_label |
label used to define the line chart. |
Value
The function create a bullet chart containing the percentage of male
and female with the corresponding baseline for the level defined in
percent_df
. The total number of submissions are displayed on
the top of the bullet chart.
[Package GenderInfer version 0.1.0 Index]