bullet_line_chart: Function to create a bullet chart with a line chart in the...

Description Usage Arguments Value

View source: R/bullet_line_chart.R

Description

Function to create a bullet chart with a line chart in the same graphical frame; to compare different baselines for gender analysis.

Usage

 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
)

Arguments

data_df,

dataframe in output from percent_df

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.


GenderInfer documentation built on Sept. 29, 2021, 9:07 a.m.