This will show it

library(workflowchart)
steps <- data.frame(name = c("do 1.1", "do 2.1", "do 3"), from = c("1", "2", "1.1, 2.1"), to = c("1.1", "2.1", "3"))
steps
nodes <- workflowchart(indat = steps, names_col = "name", in_col = "from", out_col = "to")
                       #, clusters_col = "CLUSTER", todo_col="STATUS")
DiagrammeR::grViz(nodes)

If you like to show it sideways horizontally:

nodes <- workflowchart(indat = steps, names_col = "name", in_col = "from", out_col = "to", sideways = T)
DiagrammeR::grViz(nodes)


ivanhanigan/workflowchart documentation built on May 14, 2024, 6:06 a.m.