Renders the lineage graph returned by lg_lineage() as an interactive
inline widget (using DiagrammeR if installed), or writes the DOT source
to a file for rendering with Graphviz externally.
Arguments
- lineage
An
lg_lineageobject fromlg_lineage().- output
Character or
NULL. File path for DOT output (e.g."pipeline.dot"). WhenNULL(default), renders inline usingDiagrammeR::grViz()if available, otherwise prints the DOT source to the console.
Examples
if (FALSE) { # \dontrun{
lg_start()
pts <- lg_tag(data.frame(USUBJID = c("P01","P02"),
eligible = c(TRUE, FALSE),
stringsAsFactors = FALSE),
dataset_id = "PATIENTS")
lg_filter(pts, eligible, reason = "Not eligible")
lin <- lg_lineage()
lg_plot(lin)
lg_end()
} # }
