plot_tree {monoClust} | R Documentation |
Plot the monoClust Tree.
Description
This function plots the MonoClust tree. It is partially inspired by rpart package.
Usage
plot_tree(
x,
uniform = FALSE,
branch = 1,
margin = 0,
minbranch = 0.3,
rel.loc.x = TRUE,
...
)
Arguments
x |
MonoClust result object. |
uniform |
If TRUE, uniform vertical spacing of the nodes is used; this may be less cluttered when fitting a large plot onto a page. The default is to use a non-uniform spacing proportional to the inertia in the fit. |
branch |
Controls the shape of the branches from parent to child node. Any number from 0 to 1 is allowed. A value of 1 gives square shouldered branches, a value of 0 give V shaped branches, with other values being intermediate. |
margin |
An extra fraction of white space to leave around the borders of the tree. (Long labels sometimes get cut off by the default computation). |
minbranch |
Set the minimum length for a branch to |
rel.loc.x |
Whether to use the relative distance between clusters as x coordinate of the leaves. Default is TRUE. |
... |
Arguments to be passed to |
Value
Plot of tree