Learn R Programming

TraMineR (version 1.6-2)

seqtree2dot: Graphical representation of a dissimilarity tree

Description

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.

Usage

seqtree2dot(tree, filename, seqdata, imgLeafOnly=FALSE, sortv=NULL, ...)

Arguments

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

Value

  • Nothing but generates a file in the current working directory (see setwd).

Details

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.

See Also

disstree for examples