make_diagram creates a

make_diagram(
  report_file = knitr::current_input(dir = TRUE),
  critical = list(names = "lustering|uality", color = "Gold"),
  exclude = "libraries",
  style = "single-cell",
  extra_connections = NULL,
  critical_connections = NULL,
  central_node = "",
  last_node = ""
)

Arguments

report_file

Step's list or Reportr object, Default: knitr::current_input(dir = TRUE).

critical

Critical steps, Default: list(names = "lustering|uality", color = "Gold").

exclude

Exclude these steps, Default: 'libraries'.

style

Style has a pre-set of connections between steps, Default: 'single-cell'.

extra_connections

This further modifies connections, Default: NULL.

critical_connections

Makes the connection red, Default: NULL.

central_node

Step connected to the rest after it, Default: ''.

last_node

Last step in the diagram, Default: ''.

Value

Spec for a Graphviz diagram as text.

Details

At the moment is more difficult to get the right titles from a list or an Reportr object

See also

Examples

if (FALSE) { if(interactive()){ DiagrammeR::grViz(make_diagram(list("Step1"= 1, "Step2" = 2), style = NULL)) } }