View source: R/2-plot-functions.R
plot.ceg | R Documentation |
igraph's plotting for CEG
## S3 method for class 'ceg' plot(x, col = NULL, ignore = x$name_unobserved, layout = NULL, ...)
x |
an object of class |
col |
colors specification see |
ignore |
vector of stages which will be ignored and left untouched,
by default the name of the unobserved stages stored in
|
layout |
an igraph layout. |
... |
additional arguments passed to |
This function is a simple wrapper around
igraph's plot.igraph
.
The ceg object is converted to an igraph object
by firstly obtaining the adjacency matrix representation
with ceg2adjmat
.
If not specified, the default layout
used is
a rotated layout.reingold.tilford
.
We use palette()
as palette for
the igraph plotting, while plot.igraph
uses
as default a different palette. This is to allow matching
stages colors between plot.ceg
and plot.sevt
.
## Not run: model <- stages_bhc(full(Titanic)) model.ceg <- ceg(model) plot(model.ceg, edge.arrow.size = 0.1, vertex.label.dist = -2) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.