This function will generate the milestone_network and progressions.

add_cluster_graph(model, milestone_network, grouping = NULL,
  explicit_splits = FALSE, ...)

Arguments

model

The model to which a cluster graph will be added. Needs to have a cell grouping created by add_grouping().

milestone_network

A network of milestones.

grouping

A grouping of the cells, can be a named vector or a dataframe with group_id (character) and cell_id (character)

explicit_splits

Whether to make splits specific by adding a starting node. For example: A->B, A->C becomes A->X, X->B, X->C

...

extra information to be stored in the wrapper.

Value

The trajectory model