Description Usage Arguments Value
View source: R/bullet_line_chart.R
Function to create a bullet chart with a line chart in the same graphical frame; to compare different baselines for gender analysis.
1 2 3 4 5 6 7 8 9 10 11 | 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
)
|
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. |
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.