Function to create a bullet chart with a line chart in the same graphical frame; to compare different baselines for gender analysis.
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
)dataframe in output from percent_df
numeric vector containing the baseline for each level
label for x axis for both charts
label for y axis of the bullet chart
label used to define the baseline name.
data frame containing the total number of submissions
factor of conversion for second y-axis
label the y-axis of the line chart
label used to define the line chart.
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.