Learn R Programming

TraMineR (version 1.1)

disstree2dot: Graphical representation of a dissimilarity tree

Description

Generate a "dot" file and associated images files that can be used in GraphViz to get a graphical reprensetation of the tree.

Usage

disstree2dot(tree, filename, digits = 3, 
  imagefunc = NULL, imagedata = NULL, imgLeafOnly = FALSE, 
  devicefunc = "jpeg", imageext = "jpg", device.arg = list(), 
  use.title = TRUE, label.loc = "main", node.loc = "main",
  split.loc = "sub", title.cex = 1, ...)

seqtree2dot(tree, filename, seqs, plottype="seqdplot", 
  imgLeafOnly=FALSE,sortv=NULL,...)

Arguments

tree
The tree to be plotted
filename
A filename, without extension, that will be used to generate image and dot files
seqs
Sequences to be plotted
plottype
type of sequence plot, one of seqdplot, seqfplot and seqiplot
sortv
Used to sort sequence if plottype is equal to seqiplot
digits
Number of significant digits to plot
imagefunc
A function to plot the individuals in a node, see details
imagedata
a data.frame that will be passed to imagefunc, see details
imgLeafOnly
If TRUE, only terminal node will be plotted
devicefunc
A device function used, typically jpeg
imageext
extension for image files.
device.arg
Argument passed to devicefunc
use.title
If TRUE, node information will be printed using title command, see details
label.loc
Location of the node label
node.loc
Node content location
split.loc
Split information location
title.cex
cex applied to all title call (see use.title
...
other parameters that will be passed to imagefunc

Value

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

Details

This function call imagefunc using the selected lines of imagedata if present or a list of index if not.

See Also

disstree for example