| disstree2dot | R Documentation | 
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, xaxis = FALSE,
  imgLeafOnly, dist.matrix, title.cex,
  withlegend, withquality, axes,  ...)
tree | 
 The tree to be plotted.  | 
filename | 
 A filename, without extension, that will be used to generate image and dot files.  | 
digits | 
 Number of significant digits to plot.  | 
image.fun | 
 A function to plot the individuals in a node, see details.  | 
image.data | 
 a   | 
only.leaf | 
 Logical: If   | 
device | 
 A device function,   | 
image.format | 
 extension for image files.  | 
device.args | 
 Argument passed to   | 
use.title | 
 Logical: If   | 
label.pos | 
 Location of the node label, see   | 
node.pos | 
 Node content location, see   | 
split.pos | 
 Split information location, see   | 
cex.main | 
 
  | 
title.outer | 
 Logical: If   | 
legend.text | 
 An optional text appearing in a distinct node.  | 
image.legend | 
 An optional image file appearing in a distinct node.  | 
image.quality | 
 An optional image file appearing in a distinct node.  | 
show.depth | 
 Logical. If   | 
with.quality | 
 If   | 
cex.quality | 
 Numeric. Size of the font of the fitting measures node.  | 
seqdata | 
 a sequence object as defined by the the   | 
sortv | 
 The name of an optional variable used to sort the data before plotting, see   | 
diss | 
 The name of an optional dissimilarity matrix used to find representative sequences,   | 
with.legend | 
 defines if and where the legend of the state colors is plotted. The default value   | 
cex.legend | 
 Size of the font of the legend.  | 
xaxis | 
 Logical. Should the x-axis be drawn on the plots?  | 
imagefunc | 
 Deprecated. Use   | 
imagedata | 
 Deprecated. Use   | 
imgLeafOnly | 
 Deprecated. Use   | 
devicefunc | 
 Deprecated. Use   | 
imageext | 
 Deprecated. Use   | 
device.arg | 
 Deprecated. Use   | 
label.loc | 
 Deprecated. Use   | 
node.loc | 
 Deprecated. Use   | 
split.loc | 
 Deprecated. Use   | 
title.cex | 
 Deprecated. Use   | 
legendtext | 
 Deprecated. Use   | 
legendimage | 
 Deprecated. Use   | 
qualityimage | 
 Deprecated. Use   | 
showdepth | 
 Deprecated. Use   | 
withquality | 
 Deprecated. Use   | 
quality.fontsize | 
 Deprecated. Use   | 
dist.matrix | 
 Deprecated. Use   | 
withlegend | 
 Deprecated. Use   | 
axes | 
 Deprecated. Use   | 
... | 
 other parameters that will be passed to   | 
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).
If the path to GraphViz is not found, pass the path as gvpath argument among the ... list.
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.
Nothing but generates a "dot" and several image files (one per node) in the current working directory (see getwd and setwd).
Matthias Studer (with Gilbert Ritschard for the help page)
seqtree and seqtreedisplay, disstree and disstreedisplay.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.