Description Usage Arguments Value Examples
View source: R/div_plot_paygap_distribution.R
Plots a histogram, a normal distribution with the same standard deviation and mean as well as one with a mean centred around 1
1 | div_plot_paygap_distribution(x, label = "Gender", mu_unbiased = 1)
|
x |
numeric vector, column of paygap observations |
label |
character, prefix for the title |
mu_unbiased |
numeric, the mean of the unbiased distribution (for paygaps this should be 1) |
ggplot2 object
1 2 3 | d <- div_fake_team()
pg <- div_paygap(d)
div_plot_paygap_distribution(pg$data$paygap)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.