Learn R Programming

rpst (version 1.0.0)

plot.rpst: Produces a tree plot of a "rpst" object

Description

Produces a tree plot of a "rpst" object.

Usage

# S3 method for rpst
plot(x, xlength = 1, ylength = 3, xshift = 0.5 , ysegment = 6,...)

Arguments

x

a "rpst" project.

xlength

xlength of the plot.

ylength

ylength of the plot.

xshift

xshift of the plot.

ysegment

ysegment of the plot.

additional summary arguments.

References

Zhang, H., Legro, R. S., Zhang, J., Zhang, L., Chen, X., Huang, H., ... & Eisenberg, E. (2010). Decision trees for identifying predictors of treatment effectiveness in clinical trials and its application to ovulation in a study of women with polycystic ovary syndrome.. Human Reproduction, 25(10), 2612-2621.

See Also

rpst, print.rpst, predict.rpst.

Examples

Run this code
#require(survival)
data <- gen.data(n = 20, p = 5, c = 2)
tree <- rpst(data$data, minsize = 2)
print.rpst(tree)

plot.rpst(tree)

Run the code above in your browser using DataLab