View source: R/plot_parentslist.R
plot.parentslist | R Documentation |
igraph plotting of DAGs (parentslist)
## S3 method for class 'parentslist'
plot(
x,
col = c(context = "red", `context-partial` = "orange", partial = "blue", local =
"purple", total = "black"),
...
)
x |
an R object of calss |
col |
specification for the colors of the edge type. |
... |
additional parameters passed to |
This function is a simple wrapper around
igraph's plot.igraph
.
The parentslist
object is converted to an igraph object
with as_igraph
and then passed to plot.igraph
.
Additional arguments ...
are passed to the igraph
plotting function, allowing customization.
## Not run:
model <- stages_bhc(full(Titanic))
pl <- as_parentslist(model, silent = TRUE)
plot(model, edge.label = NA)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.