seqtreedisplay | R Documentation |
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, ...)
tree |
A |
filename |
The name of a file where to save the plot (overwritting existing file). If |
seqdata |
The sequence object containing the state sequences plotted in the nodes. |
only.leaf |
Logical. If |
sortv |
Argument passed to |
diss |
Argument passed to |
cex.main |
Node title magnification. See |
with.legend |
Logical. Should the color legend be displayed on the plot? |
cex.legend |
Legend magnification. See |
xaxis |
Logical. Should the x-axis be displayed on the plots? (argument passed to |
image.format |
Image format of the output file ( |
with.quality |
If |
cex.quality |
Fitting measure text magnification. See |
legend.text |
Character. Optional text information that should be added. |
show.tree |
Logical. Should the tree be shown on the screen? |
show.depth |
Logical. If |
image.fun |
A function to plot the individuals in a node, see details. |
image.data |
a |
imgLeafOnly |
Deprecated. Use |
dist.matrix |
Deprecated. Use |
title.cex |
Deprecated. Use |
withlegend |
Deprecated. Use |
legend.fontsize |
Deprecated. Use |
imageformat |
Deprecated. Use |
withquality |
Deprecated. Use |
quality.fontsize |
Deprecated. Use |
legendtext |
Deprecated. Use |
showtree |
Deprecated. Use |
showdepth |
Deprecated. Use |
imagedata |
Deprecated. Use |
imagefunc |
Deprecated. Use |
axes |
Deprecated. Use |
... |
additional arguments passed to seqplot |
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.
None
Matthias Studer (with Gilbert Ritschard for the help page)
See seqtree
and disstree
for examples, and disstree2dot
for generating "dot" files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.