View source: R/plot_age_proxy_distribution.R
plot_age_proxy_distribution | R Documentation |
This function plots a stacked bar graph showing the distribution of children under 2 years of age to over 2 years of age.
plot_age_proxy_distribution(
df,
by_group = NULL,
file_path = NULL,
wdth = NULL,
hght = NULL,
title_name = NULL
)
df |
Inputs a dataframe that has been processed and standardized by the healthyr::format_nut_health_indicators function. |
by_group |
Inputs an optional character value specifying the column by which to facet the resulting plot. |
file_path |
Inputs an optional character value specifying the file path location to save an image of the plot. Recommended to specify as a .jpg or .png file. |
wdth |
Inputs an optional numeric value for the width of the image. |
hght |
Inputs an optional numeric value fo the height of the image. |
title_name |
Inputs an optional character value for the title of the plot. |
Returns a ggplot2 object.
## Not run: plot_age_proxy_distribution(df, by_group = "enum", )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.