powered by
Plots a histogram, a normal distribution with the same standard deviation and mean as well as one with a mean centred around 1
div_plot_paygap_distribution(x, label = "Gender", mu_unbiased = 1)
numeric vector, column of paygap observations
character, prefix for the title
numeric, the mean of the unbiased distribution (for paygaps this should be 1)
ggplot2 object
# NOT RUN { d <- div_fake_team() pg <- div_paygap(d) div_plot_paygap_distribution(pg$data$paygap) # }
Run the code above in your browser using DataLab