plot.htt | R Documentation |
Visualize a htt
object, several arguments can be passed to control the color and shape.
## S3 method for class 'htt'
plot(x, digits = 3,
line.color = "blue",
node.color = "black",
line.type = c("straight", "curved"),
layout = c("tree", "dendrogram"), ...)
x |
fitted model object of class |
digits |
the number of significant digits in displayed numbers.
Default is |
line.color |
a character specifying the edge color.
Default is |
node.color |
a character specifying the node color.
Default is |
line.type |
a character specifying the type of edge,
|
layout |
a character specifying the layout,
|
... |
additional print arguments. |
This function is a method for the generic function plot
, for objects of class htt
.
Visualize the hypothesis testing tree.
print.htt
, printsplit
, predict.htt
irishtt = HTT(Species ~., data = iris)
plot(irishtt)
# change the line color and node color
plot(irishtt, line.color = "black", node.color = "blue")
# change the line type
plot(irishtt, line.type = "curved")
# change the layout
plot(irishtt, layout = "dendrogram")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.