seqtree2dot {TraMineR} | R Documentation |
This function offers shortcuts to generate a "dot" file and associated images files that can be used in GraphViz to get a graphical representation of the tree.
seqtree2dot(tree, filename, seqdata, imgLeafOnly=FALSE, sortv=NULL, ...)
tree |
A tree object to be plotted as defined by disstree |
filename |
A filename, without extension, that will be used to generate image and dot files |
seqdata |
a sequence object as defined by the the seqdef function. |
sortv |
The name of an optional variable used to sort the data before plotting, see plot.stslist . |
imgLeafOnly |
If TRUE , only terminal node will be plotted |
... |
other parameters that will be passed to plot.stslist |
This function generates a "dot" file and one image file per node. For each node, it calls plot.stslist
passing the selected lines of seqdata
as argument.
seqtree2dot
is a shortcut for sequences objects using the plot function plot.stslist
.
Nothing but generates a file in the current working directory (see setwd
).
disstree
for examples