View source: R/plot_select_multiple.R
plot_select_multiple | R Documentation |
This function creates a plot results for a select multiple indicator that has been aggregated already through the healthyr::analyse_survey_results function.
plot_select_multiple(
results_df,
select_multiple_cols,
file_path = NULL,
wdth = NULL,
hght = NULL,
title_name = NULL
)
results_df |
Inputs a dataframe of results from the healthyr::analyse_survey_results function. |
select_multiple_cols |
Inputs a character vector of column names for the select multiple question to 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_select_multiple(results_df = myresults,
select_multiple_cols = c("barrier.1", "barrier.2", "barrier.3"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.