Plot a PST
1 2 3 4 5 6 7 
x 
A PST, that is an object of class 
y 
not applicable 
max.level 
integer. The maximal depth for the display of the tree. 
nodePar 
list. A list of parameters for tuning the node representation. Possible parameters are

edgePar 
list. A list of parameters for tuning the edges representation. Possible paramters are 
axis 
logical. If TRUE the axes are displayed on the plot. 
xlab 
character. Label for the x axis. 
ylab 
character. Label for the y axis representing the tree depth. 
horiz 
logical. If FALSE, the tree is represented vertically. The root node at depth L=0 is plotted on the top, and the nodes of maximal depth are plotted on the bottom of the plot. If TRUE, the tree is represented horizontally. The root node at depth L=0 is plotted on the right, and the nodes of maximal depth are plotted on the left of the plot. 
xlim 
numeric. Vector of length 2 giving the x limits for the plot. By default the limits are 1 .. number of terminal nodes (at max.level if specified). This may be usefull to facilitate comparison if several trees are plotted on the same figure. 
ylim 
numeric. Vector of length 2 giving the y limits for the plot. By default the limits are 0 .. max. depth of the tree (max.level if specified). This may be usefull to facilitate comparison if several trees are plotted on the same figure. 
withlegend 
defines if and where the legend of the state colors is plotted. The default value 
ltext 
optional description of the states to appear in the legend. Must be a vector of character strings with number of elements equal to the size of the alphabet. If unspecified, the 
cex.legend 
expansion factor for setting the size of the font for the labels in the legend. The default value is 1. Values lesser than 1 will reduce the size of the font, values greater than 1 will increase the size. 
use.layout 
if 
legend.prop 
sets the proportion of the graphic area used for plotting the legend when 
... 
arguments to be passed to the plot function or graphical parameters 
The function for graphical representation of a PST uses is recursive. The main argument of the function is a tree represented as a nested list (an object of class PSTr
). See also Gabadinho 2016.
Alexis Gabadinho, based on code from plot.dendrogram
Gabadinho, A. & Ritschard, G. (2016). Analyzing State Sequences with Probabilistic Suffix Trees: The PST R Package. Journal of Statistical Software, 72(3), pp. 139.
1 2 3 4 5 6 7 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs with the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.