plot.htt: Plot an htt Object

View source: R/plot.R

plot.httR Documentation

Plot an htt Object

Description

Visualize a htt object, several arguments can be passed to control the color and shape.

Usage

## S3 method for class 'htt'
plot(x, digits = 3,
    line.color = "blue",
    node.color = "black",
    line.type = c("straight", "curved"),
    layout = c("tree", "dendrogram"), ...)

Arguments

x

fitted model object of class htt returned by the HTT function.

digits

the number of significant digits in displayed numbers. Default is digits = 3.

line.color

a character specifying the edge color. Default is line.color = "blue".

node.color

a character specifying the node color. Default is node.color = "black".

line.type

a character specifying the type of edge, line.type = "straight" or line.type = "curved". Default is line.type = "straight".

layout

a character specifying the layout, layout = "tree" or layout = "dendrogram". Default is layout = "tree".

...

additional print arguments.

Details

This function is a method for the generic function plot, for objects of class htt.

Value

Visualize the hypothesis testing tree.

See Also

print.htt, printsplit, predict.htt

Examples

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")

HTT documentation built on March 31, 2023, 5:40 p.m.