Plot Risk Behaviors

plot_risk_behaviors(
  data,
  behavior_vars,
  suicide_var,
  plot_title,
  fill_colors = c("#24bccb", "#4e2d86")
)

Arguments

data

A data frame containing the variables for plotting.

behavior_vars

A vector of column names for risk behavior variables.

suicide_var

The column name for the suicide attempt variable.

plot_title

The title of the plot.

fill_colors

A character vector of colors for the plot fill.

Value

A ggplot object.