plotprism: Partially Recursively Induced Structured Moderation

Description Usage Arguments Details Examples

View source: R/plotprism.R

Description

Plot the prism or hprism model

Usage

1
plotprism(l, color = 2, extra = 1, type = 1, digit = 4)

Arguments

l

An rpart output used to plot prism or hprism tree

color

Color of the boxes around the text. Defalt value in 2.

extra

Display extra information at the nodes. Default value is 1.

type

Type of plot. Defual value is 1.

digit

number of significant digits in displayed numbers. Default value is 4.

Details

This function calls the prp R function in the rpart.plot package which provides prettier more customizable tree plots. Details about how to customize the plot by specifying different values of parameters extra and type can be found in prp help file in rpart.plot package.

Examples

1
2
3
4
5
6
## Not run: 
plotprism(l.prism)
plotprism(l.hprism)
plotprism(l.hprism1)

## End(Not run)

yuhuilin619/prism documentation built on July 18, 2019, 5:41 p.m.