Description Usage Arguments Value Examples
View source: R/linearise_cells.R
This is an internal function and should probably not be used manually.
1 2 3 4 5 6 7 | linearise_cells(
trajectory,
margin = 0.05,
no_margin_between_linear = TRUE,
one_edge = FALSE,
equal_cell_width = FALSE
)
|
trajectory |
A dynwrap trajectory. |
margin |
A margin between trajectory segments. |
no_margin_between_linear |
Whether to add a margin only when a branch occurs. |
one_edge |
Whether or not to assign each cell to one cell only. This can occur when a cell is on a branching point, or in between multiple edges. |
equal_cell_width |
Whether or not to space segments according to cell count. |
A named list with values:
milestone_network
: A linearised version of trajectory$milestone_network
with extra columns: add_margin
, n_margins
, cumstart
, cumend
, edge_id
.
progressions
: A linearised version of trajectory$progressions
with extra columns:
percentage2
, length
, directed
, add_margin
, n_margins
, cumstart
, cumend
, edge_id
, cumpercentage
.
margin
: The used margin (numeric).
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.