Skip to contents

Make a sankey plot

Usage

plot_sankey(
  data,
  capitalise_node_labels = TRUE,
  save_png_to = NULL,
  png_name = "sankey.png",
  nodes_order_from_data = FALSE
)

Arguments

data

data.frame. Should have the same format as output of prep_sankey()

capitalise_node_labels

Logical. Flag indicating if node labels should be converted into better looking capitalised form.

save_png_to

Character. Path where the output in png format should be saved

png_name

Character. File name of the output.

nodes_order_from_data

Logical. Flag indicating if nodes order should be determined by an algorithm (in case of big datasets often results in a better looking plot) or should they be ordered based on data.

Examples

# TODO