plot_select_multiple: Plot Select Multiple Results

View source: R/plot_select_multiple.R

plot_select_multipleR Documentation

Plot Select Multiple Results

Description

This function creates a plot results for a select multiple indicator that has been aggregated already through the healthyr::analyse_survey_results function.

Usage

plot_select_multiple(
  results_df,
  select_multiple_cols,
  file_path = NULL,
  wdth = NULL,
  hght = NULL,
  title_name = NULL
)

Arguments

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.

Value

Returns a ggplot2 object.

Examples

## Not run: plot_select_multiple(results_df = myresults,
select_multiple_cols = c("barrier.1", "barrier.2", "barrier.3"))
## End(Not run)

SaeedR1987/healthyr documentation built on July 4, 2023, 11:17 p.m.