sankey_plot.RdThis function creates a Sankey plot with the help of ggplot and ggalluvial.
sankey_plot(
  df,
  left_var,
  right_var,
  xlab_setting,
  ylab_setting,
  name_left,
  name_right,
  title,
  title_size = 20,
  title_font = "verdana"
)A data frame containing the data to be plotted.
A string specifying the column name to be used as the left variable.
A string specifying the column name to be used as the right variable.
ggplot labels settings for x axes.
ggplot labels settings for y axes.
A string specifying the name for the left side of the plot.
A string specifying the name for the right side of the plot.
A string specifying the title of the plot.
Numeric value specifying the size of the title.
A string specifying the font of the title.
A Sankey plot.