Generate a graphical representation of a regression tree of state sequence data.
seqtreedisplay(tree, filename = NULL, seqdata = tree$info$object,
only.leaf = FALSE, sortv = NULL, diss = NULL, cex.main = 3,
with.legend = "auto", cex.legend = cex.main, xaxis = FALSE,
image.format = "png", with.quality = TRUE, cex.quality = cex.main,
legend.text = NULL, show.tree = TRUE, show.depth = FALSE,
imgLeafOnly, dist.matrix, title.cex, withlegend, legend.fontsize,
imageformat, withquality, quality.fontsize, legendtext, showtree,
showdepth, axes, ...)disstreedisplay(tree, filename = NULL, image.data= NULL, image.fun = plot,
only.leaf = FALSE, cex.main = 3, image.format = "png",
with.quality = TRUE, cex.quality = cex.main,
legend.text = NULL, show.tree = TRUE, show.depth = FALSE,
imagedata, imagefunc, imgLeafOnly, title.cex, imageformat,
withquality, quality.fontsize, legendtext, showtree, showdepth, ...)
None
A seqtree object (as produced by seqtree) for seqtreedisplay. A disstree object (as produced by disstree) for disstreedisplay.
The name of a file where to save the plot (overwritting existing file). If NULL, a temporary file is created.
The sequence object containing the state sequences plotted in the nodes.
Logical. If TRUE sequences are plotted only in terminal nodes.
Argument passed to seqplot
Argument passed to seqplot
Node title magnification. See par.
Logical. Should the color legend be displayed on the plot?
Legend magnification. See par. If not specified, use the
value of cex.main.
Logical. Should the x-axis be displayed on the plots? (argument passed to seqplot)
Image format of the output file (filename)
If TRUE, a node displaying fitting measures of the tree is added to the plot.
Fitting measure text magnification. See par. If not specified,
use the value of cex.main.
Character. Optional text information that should be added.
Logical. Should the tree be shown on the screen?
Logical. If TRUE, the splits are ordered according to their global pseudo-R2.
A function to plot the individuals in a node, see details.
a data.frame that will be passed to image.fun.
Deprecated. Use only.leaf instead.
Deprecated. Use diss instead.
Deprecated. Use cex.main instead.
Deprecated. Use with.legend instead.
Deprecated. Use cex.legend instead.
Deprecated. Use image.format instead.
Deprecated. Use with.quality instead.
Deprecated. Use cex.quality instead.
Deprecated. Use legend.text instead.
Deprecated. Use show.tree instead.
Deprecated. Use show.depth instead.
Deprecated. Use image.data instead.
Deprecated. Use image.fun instead.
Deprecated. Use xaxis instead.
additional arguments passed to seqplot
Matthias Studer (with Gilbert Ritschard for the help page)
This function generates a tree image. For each node, it invokes seqplot for the selected lines of seqdata as argument.
You should at least specify the type of the plot to use (type="d" for instance, see seqplot for more details).
The plot is actually not generated as an R plot, but with GraphViz (www.graphviz.org). Hence, seqtreedisplay only works when GraphViz is correctly installed. If the path to GraphViz is not found, pass the path as a gvpath argument among the ... list.
Conversion to image formats other than "jpeg" or "png" is done using ImageMagick (www.imagemagick.org). To use this feature, ImageMagick (www.imagemagick.org) should hence also be installed.
See seqtree and disstree for examples, and disstree2dot for generating "dot" files.