Functions to generate a "dot" file and associated images files that can be used in GraphViz to get a graphical representation of the tree.
disstree2dot(tree, filename, digits = 3, image.fun = NULL, image.data = NULL,
only.leaf = FALSE, device = "jpeg", image.format = "jpg",
device.args = list(), use.title = TRUE, label.pos = "main",
node.pos = "main", split.pos = "sub", cex.main = 1,
legend.text = NULL, image.legend = NULL, image.quality = NULL,
show.depth = FALSE, title.outer = FALSE,
imagefunc, imagedata, imgLeafOnly, devicefunc, imageext,
device.arg, label.loc, node.loc, split.loc, title.cex, legendtext,
legendimage, qualityimage, showdepth, ...)disstree2dotp(tree, filename, image.data = NULL, only.leaf = FALSE,
image.fun = plot, cex.main = 3, with.quality = TRUE,
cex.quality = cex.main, title.outer = FALSE,
imagedata, imgLeafOnly, imagefunc, title.cex, withquality,
quality.fontsize, ...)
seqtree2dot(tree, filename, seqdata = tree$info$object, only.leaf = FALSE,
sortv = NULL, diss = NULL, cex.main = 3, with.legend = "auto",
cex.legend = cex.main, with.quality = FALSE,
cex.quality = cex.main, axes = FALSE,
imgLeafOnly, dist.matrix, title.cex,
withlegend, withquality, ...)
The tree to be plotted.
A filename, without extension, that will be used to generate image and dot files.
Number of significant digits to plot.
A function to plot the individuals in a node, see details.
a data.frame that will be passed to image.fun, see details.
Logical: If TRUE, only terminal node will be plotted.
A device function, "jpeg" by default.
extension for image files.
Argument passed to device.
Logical: If TRUE, node information will be printed using title command, see details.
Location of the node label, see title for possible values.
Node content location, see title for possible values.
Split information location, see title for possible values.
cex applied to all calls to title (see use.title).
Logical: If TRUE, the title (see use.title) is printed in the outer margins.
An optional text appearing in a distinct node.
An optional image file appearing in a distinct node.
An optional image file appearing in a distinct node.
Logical. If TRUE, information about depth of the tree is added to the plot.
If TRUE, a node displaying fitting measures of the tree is added to the plot.
Numeric. Size of the font of the fitting measures node.
a sequence object as defined by the the seqdef function.
The name of an optional variable used to sort the data before plotting, see seqplot.
The name of an optional dissimilarity matrix used to find representative sequences, seqrplot.
defines if and where the legend of the state colors is plotted. The default value "auto" sets the position of the legend automatically. Other possible value is "right". Obsolete value TRUE is equivalent to "auto".
Size of the font of the legend.
if set to "all" (default value) x axes are drawn for each plot in the graphic. If set to "bottom" and group is used, axes are drawn only under the plots located at the bottom of the graphic area. If FALSE, no x axis is drawn.
Deprecated. Use image.fun instead.
Deprecated. Use image.data instead.
Deprecated. Use only.leaf instead.
Deprecated. Use device instead.
Deprecated. Use image.format instead.
Deprecated. Use device.args instead.
Deprecated. Use label.pos instead.
Deprecated. Use node.pos instead.
Deprecated. Use split.pos instead.
Deprecated. Use cex.main instead.
Deprecated. Use legend.text instead.
Deprecated. Use image.legend instead.
Deprecated. Use image.quality instead.
Deprecated. Use show.depth instead.
Deprecated. Use with.quality instead.
Deprecated. Use cex.quality instead.
Deprecated. Use diss instead.
Deprecated. Use with.legend instead.
other parameters that will be passed to image.fun or seqplot (for seqtree2dot).
Nothing but generates a "dot" and several image files (one per node) in the current working directory (see getwd and setwd).
These functions generate a "dot" file that can be used in GraphViz (http://www.graphviz.org).
It also generates one image per node through a call to
image.fun passing the selected lines of image.data if
present or otherwise a list of indexes (of individuals belonging to a
node). These functions are not intended to be used by end-user. See seqtreedisplay
and disstreedisplay for a much simpler way to generate a graphical representation of a
tree (seqtree or disstree).
seqtree2dot is a shortcut for sequences objects using the plot function seqplot. For each node, it calls seqplot with the corresponding subset of rows of seqdata and the provided seqplot's arguments.
You should at least specify the type of the plot (e.g. type="d", see seqplot for more details).
If use.title is TRUE, image.fun should take care
to leave enough space for the title.
disstree2dotp is a simplified interface of
disstree2dot which automatically leaves enough space for the title and subtitles. These functions are intended to be generic.
seqtree and seqtreedisplay, disstree and disstreedisplay.