generate_enrolment_hist | R Documentation |
Red bars indicate health facilities which are far below the lower target. Orange bars indicate health facilities which are above the lower target, but below the upper target. Green bars indicate health facilities which are above the upper target.
generate_enrolment_hist(df, col1, col2, lthres, uthres, lblx, lbly)
df |
Data frame to use for the plot |
col1 |
Column name in data frame 'df' |
col2 |
Column name in data frame 'df' that contains numeric values |
lthres |
Numeric value, lower threshold |
uthres |
Numeric value, upper threshold |
lblx |
Label of the x-axis |
lbly |
Label of the y-axis |
This function returns a ggplot object which contains a histogram representing the distribution of values in 'col2' for each category in 'col1'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.