Reads the json of the DAG under _rixpress/dag.json
, and
uses {igraph}
to generate the plot
Usage
plot_dag(json_path = "_rixpress/dag.json", return_igraph = FALSE)
Arguments
- json_path
Character string specifying the JSON file path.
- return_igraph
Logical, defaults to FALSE. Should the underlying
igraph object be returned? This can be useful to further process it
or plot it using other tools.
Value
None by default, only prints the plot. If return_igraph
is set
to TRUE
, returns the underlying igraph object.
Examples
if (FALSE) plot_dag() # \dontrun{}