Description Usage Arguments Examples
Builds MPS graphic in graphics window
1 2 3 4 5 6 7 8 | build.tree(
var.mat.na,
cex = 0.9,
alt = 1,
shape1 = "trad",
shape2 = "right",
col
)
|
var.mat.na |
matrix of MPS data |
cex |
text size |
alt |
integer that vertically staggers terminal nodes (max of 3) |
shape1 |
either |
shape2 |
either |
col |
node color |
1 2 3 4 5 6 7 8 | mat_input<-c('Var1','Var1','Var1','Var1','Var2','Var2',
'Var3','Var3','Var4','Var5','Var4','Var5')
mat1<-matrix(mat_input,nrow=4)
build.tree(mat1) #base example
build.tree(mat1,alt=2) #different alt
build.tree(mat1,shape1="rad") #radial tree
build.tree(mat1,shape2="tri") #triangular tree (only for shape1)
build.tree(mat1,col="red") #node color
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.